srs/internal
winlin 7b4c4dc999 Claude: Add RTMP proxy seams and unit tests.
Refactor internal/proxy/rtmp.go to expose functional-option seams
(listen, newConnection, newHandshake, newProtocol, newBackend, dial)
and widen the proxy server and connection to net.Listener / net.Conn
so fakes can be injected. Tighten the identify switch in serve() to
a real switch on CommandName.

Add internal/proxy/rtmp_test.go covering rtmpProxyServer (constructor
defaults, options, Close, listen error, endpoint normalization,
accept-loop, graceful shutdown), rtmpConnection (defaults, serve
handshake/protocol error paths, identify-loop branches, newBackend
invocation contract), and rtmpClientToBackend (Close, Connect happy
and error paths, publish, play). rtmp.go statement coverage rises to
76.9% with every function exercised.
2026-05-16 16:54:11 -04:00
..
bootstrap Claude: Split lb interfaces, extract redisclient, drop race-prone globals. 2026-05-16 11:11:18 -04:00
debug Proxy: Refine logger and environment APIs. v7.0.146 (#4670) 2026-04-28 07:18:45 -04:00
env Proxy: Refine logger and environment APIs. v7.0.146 (#4670) 2026-04-28 07:18:45 -04:00
errors Proxy: Modernize internal packages on stdlib and add unit tests. v7.0.145 (#4667) 2026-04-23 07:25:48 -04:00
lb Claude: Split lb interfaces, extract redisclient, drop race-prone globals. 2026-05-16 11:11:18 -04:00
logger Proxy: Refine logger and environment APIs. v7.0.146 (#4670) 2026-04-28 07:18:45 -04:00
proxy Claude: Add RTMP proxy seams and unit tests. 2026-05-16 16:54:11 -04:00
redisclient Claude: Split lb interfaces, extract redisclient, drop race-prone globals. 2026-05-16 11:11:18 -04:00
rtmp Claude: Split lb interfaces, extract redisclient, drop race-prone globals. 2026-05-16 11:11:18 -04:00
signal Claude: Split lb interfaces, extract redisclient, drop race-prone globals. 2026-05-16 11:11:18 -04:00
sync Proxy: Modernize internal packages on stdlib and add unit tests. v7.0.145 (#4667) 2026-04-23 07:25:48 -04:00
utils Proxy: Refine logger and environment APIs. v7.0.146 (#4670) 2026-04-28 07:18:45 -04:00
version Proxy: Refactor server APIs and expand RTMP test coverage. v7.0.147 (#4672) 2026-05-02 09:36:55 -04:00