change default write timeout to 10 seconds

This commit is contained in:
aler9 2020-11-01 16:53:39 +01:00
parent 20e478b8bd
commit d88fa2a24b
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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).