change default ReadTimeout to 10secs

This commit is contained in:
aler9 2020-07-19 18:43:59 +02:00
parent 8e6e16b0aa
commit 80a48975ed
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ func loadConf(fpath string, stdin io.Reader) (*conf, error) {
}
if conf.ReadTimeout == 0 {
conf.ReadTimeout = 5 * time.Second
conf.ReadTimeout = 10 * time.Second
}
if conf.WriteTimeout == 0 {
conf.WriteTimeout = 5 * time.Second

View File

@ -11,12 +11,12 @@ rtcpPort: 8001
# this is terminated with SIGINT when a client disconnects.
runOnConnect:
# timeout of read operations
readTimeout: 5s
readTimeout: 10s
# timeout of write operations
writeTimeout: 5s
# supported authentication methods
authMethods: [basic, digest]
# enable pprof on port 9999 to monitor performance
# enable pprof on port 9999 to monitor performances
pprof: false
# these settings are path-dependent. The settings under the path 'all' are