mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-19 05:21:09 +00:00
change default ReadTimeout to 10secs
This commit is contained in:
parent
8e6e16b0aa
commit
80a48975ed
2
conf.go
2
conf.go
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user