Change RTSP dial timeout to 5 sec

This commit is contained in:
Alexey Khit
2022-11-04 17:05:57 +03:00
parent a31cbec3eb
commit 5a8df3e90a
+1 -3
View File
@@ -114,9 +114,7 @@ func (c *Conn) Dial() (err error) {
_ = c.parseURI()
}
c.conn, err = net.DialTimeout(
"tcp", c.URL.Host, 10*time.Second,
)
c.conn, err = net.DialTimeout("tcp", c.URL.Host, time.Second*5)
if err != nil {
return
}