rtmp: add conn handshake tests

This commit is contained in:
aler9
2022-07-09 16:19:49 +02:00
parent a19f45f736
commit bf1f45df32
4 changed files with 379 additions and 6 deletions

View File

@@ -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
}