mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
rtmp: add conn handshake tests
This commit is contained in:
parent
a19f45f736
commit
bf1f45df32
4 changed files with 379 additions and 6 deletions
|
|
@ -117,7 +117,7 @@ func (s *rtmpSource) runInner() bool {
|
|||
readDone <- func() error {
|
||||
conn.SetReadDeadline(time.Now().Add(time.Duration(s.readTimeout)))
|
||||
conn.SetWriteDeadline(time.Now().Add(time.Duration(s.writeTimeout)))
|
||||
err = conn.ClientHandshake()
|
||||
err = conn.ClientHandshake(true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue