diff --git a/vendor/git.autistici.org/ai3/go-common/serverutil/http.go b/vendor/git.autistici.org/ai3/go-common/serverutil/http.go index 641c0b9bcae0001b66322e04b28c9da981617424..afaadf44f355adc0e342b3c761b4ce888a0ba57a 100644 --- a/vendor/git.autistici.org/ai3/go-common/serverutil/http.go +++ b/vendor/git.autistici.org/ai3/go-common/serverutil/http.go @@ -60,20 +60,19 @@ func (config *ServerConfig) buildHTTPServer(h http.Handler) (*http.Server, error if config.MaxInflightRequests > 0 { h = newLoadSheddingWrapper(config.MaxInflightRequests, h) } - } - // Wrap the handler with a TimeoutHandler if 'request_timeout' - // is set. - h = addDefaultHandlers(h) - if config.RequestTimeoutSecs > 0 { - h = http.TimeoutHandler(h, time.Duration(config.RequestTimeoutSecs)*time.Second, "") + // Wrap the handler with a TimeoutHandler if 'request_timeout' + // is set. + if config.RequestTimeoutSecs > 0 { + h = http.TimeoutHandler(h, time.Duration(config.RequestTimeoutSecs)*time.Second, "") + } } // These are not meant to be external-facing servers, so we // can be generous with the timeouts to keep the number of // reconnections low. return &http.Server{ - Handler: h, + Handler: addDefaultHandlers(h), ReadTimeout: 30 * time.Second, WriteTimeout: 30 * time.Second, IdleTimeout: 600 * time.Second, diff --git a/vendor/vendor.json b/vendor/vendor.json index 099c28c37b21681c05bbabee17ebaa36fc3b13c4..2fe5cdd6618ac57d1d06b70c625860ec783eb269 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -5,26 +5,26 @@ { "checksumSHA1": "oUOxU+Tw1/jOzWVP05HuGvVSC/A=", "path": "git.autistici.org/ai3/go-common", - "revision": "d4396660b1f09d2d07a7271b8a480726c5d29a6e", - "revisionTime": "2020-02-06T11:03:59Z" + "revision": "29b9513a8afbdbda061208c8de63a2fa1bdf0bf4", + "revisionTime": "2020-02-06T18:11:03Z" }, { "checksumSHA1": "/uo2RHmQ/sae2RMYKm81zb6OUn4=", "path": "git.autistici.org/ai3/go-common/clientutil", - "revision": "d4396660b1f09d2d07a7271b8a480726c5d29a6e", - "revisionTime": "2020-02-06T11:03:59Z" + "revision": "29b9513a8afbdbda061208c8de63a2fa1bdf0bf4", + "revisionTime": "2020-02-06T18:11:03Z" }, { - "checksumSHA1": "xrew5jDNLDh5bhTZ4jgO0rX0N+4=", + "checksumSHA1": "Gf1Ot7BviUta2ttp00G0wEissMk=", "path": "git.autistici.org/ai3/go-common/serverutil", - "revision": "d4396660b1f09d2d07a7271b8a480726c5d29a6e", - "revisionTime": "2020-02-06T11:03:59Z" + "revision": "29b9513a8afbdbda061208c8de63a2fa1bdf0bf4", + "revisionTime": "2020-02-06T18:11:03Z" }, { "checksumSHA1": "y5pRYZ/NhfEOCFslPEuUZTYXcro=", "path": "git.autistici.org/ai3/go-common/tracing", - "revision": "d4396660b1f09d2d07a7271b8a480726c5d29a6e", - "revisionTime": "2020-02-06T11:03:59Z" + "revision": "29b9513a8afbdbda061208c8de63a2fa1bdf0bf4", + "revisionTime": "2020-02-06T18:11:03Z" }, { "checksumSHA1": "FRxoT4jwgKDffIm5RwpFWjVVilc=",