From 4e0b2c03f4e7c46769cfb65141687c462385fff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 9 Apr 2021 10:39:57 +0200 Subject: [PATCH] Increase HTTP read timeout from 10 to 30 minutes This is to allow big Sprite Fright files to be uploaded over a slower-than-LAN VPN connection, for people working from home. --- CHANGELOG.md | 5 +++++ httpserver/httpserver.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92ad1738..68e84613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog for Flamenco Manager ============================== +## Version 2.7.1 (in development) + +- Increase HTTP read timeout from 10 to 30 minutes. + + ## Version 2.7 (2019-11-12) - Update ACME/Let's Encrypt protocol to v2. diff --git a/httpserver/httpserver.go b/httpserver/httpserver.go index b4176aca..bd86ac78 100644 --- a/httpserver/httpserver.go +++ b/httpserver/httpserver.go @@ -14,7 +14,7 @@ import ( // Constants for the HTTP servers. const ( ReadHeaderTimeout = 15 * time.Second - ReadTimeout = 600 * time.Second + ReadTimeout = 30 * time.Minute ) // Server acts as a http.Server