Browse Source

change default ReadTimeout to 10secs

pull/52/head
aler9 6 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) {
} }
if conf.ReadTimeout == 0 { if conf.ReadTimeout == 0 {
conf.ReadTimeout = 5 * time.Second conf.ReadTimeout = 10 * time.Second
} }
if conf.WriteTimeout == 0 { if conf.WriteTimeout == 0 {
conf.WriteTimeout = 5 * time.Second conf.WriteTimeout = 5 * time.Second

4
rtsp-simple-server.yml

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

Loading…
Cancel
Save