Browse Source

change default ReadTimeout to 10secs

pull/52/head
aler9 5 years ago
parent
commit
80a48975ed
  1. 2
      conf.go
  2. 4
      rtsp-simple-server.yml

2
conf.go

@ -116,7 +116,7 @@ func loadConf(fpath string, stdin io.Reader) (*conf, error) { @@ -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

4
rtsp-simple-server.yml

@ -11,12 +11,12 @@ rtcpPort: 8001 @@ -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…
Cancel
Save