rtmp source: allow outgoing acknowledges

This commit is contained in:
aler9
2022-08-16 18:14:24 +02:00
parent 7216fc683c
commit 85ce12199a
2 changed files with 4 additions and 1 deletions

View File

@@ -148,6 +148,9 @@ func (s *rtmpSource) run(ctx context.Context) error {
s.parent.sourceStaticImplSetNotReady(pathSourceStaticSetNotReadyReq{})
}()
// disable write deadline to allow outgoing acknowledges
nconn.SetWriteDeadline(time.Time{})
for {
nconn.SetReadDeadline(time.Now().Add(time.Duration(s.readTimeout)))
msg, err := conn.ReadMessage()