From d88fa2a24bbfc2f00c18ef57bb92ff333fedfdbb Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 1 Nov 2020 16:53:39 +0100 Subject: [PATCH] change default write timeout to 10 seconds --- conf/conf.go | 2 +- rtsp-simple-server.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/conf.go b/conf/conf.go index 802d195c..171a77ba 100644 --- a/conf/conf.go +++ b/conf/conf.go @@ -74,7 +74,7 @@ func (conf *Conf) fillAndCheck() error { conf.ReadTimeout = 10 * time.Second } if conf.WriteTimeout == 0 { - conf.WriteTimeout = 5 * time.Second + conf.WriteTimeout = 10 * time.Second } if len(conf.AuthMethods) == 0 { diff --git a/rtsp-simple-server.yml b/rtsp-simple-server.yml index 55fbfea9..5e1b45f3 100644 --- a/rtsp-simple-server.yml +++ b/rtsp-simple-server.yml @@ -11,7 +11,7 @@ rtcpPort: 8001 # timeout of read operations. readTimeout: 10s # timeout of write operations. -writeTimeout: 5s +writeTimeout: 10s # supported authentication methods (both are insecure, use RTSP inside a VPN # to enforce security).