Browse Source

change default write timeout to 10 seconds

pull/169/head
aler9 6 years ago
parent
commit
d88fa2a24b
  1. 2
      conf/conf.go
  2. 2
      rtsp-simple-server.yml

2
conf/conf.go

@ -74,7 +74,7 @@ func (conf *Conf) fillAndCheck() error { @@ -74,7 +74,7 @@ func (conf *Conf) fillAndCheck() error {
conf.ReadTimeout = 10 * time.Second
}
if conf.WriteTimeout == 0 {
conf.WriteTimeout = 5 * time.Second
conf.WriteTimeout = 10 * time.Second
}
if len(conf.AuthMethods) == 0 {

2
rtsp-simple-server.yml

@ -11,7 +11,7 @@ rtcpPort: 8001 @@ -11,7 +11,7 @@ rtcpPort: 8001
# timeout of read operations.
readTimeout: 10s
# timeout of write operations.
writeTimeout: 5s
writeTimeout: 10s
# supported authentication methods (both are insecure, use RTSP inside a VPN
# to enforce security).

Loading…
Cancel
Save