From 80a48975edc618d8f9ea296ac973e11de4468949 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 19 Jul 2020 18:43:59 +0200 Subject: [PATCH] change default ReadTimeout to 10secs --- conf.go | 2 +- rtsp-simple-server.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf.go b/conf.go index c127965d..87073787 100644 --- a/conf.go +++ b/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 diff --git a/rtsp-simple-server.yml b/rtsp-simple-server.yml index 2e388713..d05da04f 100644 --- a/rtsp-simple-server.yml +++ b/rtsp-simple-server.yml @@ -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