mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 15:46:58 +08:00
rtmp source: allow outgoing acknowledges
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user