mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-29 22:42:00 -08:00
change default ReadTimeout to 10secs
This commit is contained in:
parent
8e6e16b0aa
commit
80a48975ed
2 changed files with 3 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue