mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
rtmp source: allow outgoing acknowledges
This commit is contained in:
parent
7216fc683c
commit
85ce12199a
2 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue