From 5010cfa22861fd2b1242b7a260b93c2c6e8fa062 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Wed, 26 Apr 2017 15:51:10 +0200
Subject: [PATCH] apache-frontend: Increase trafficserver
 transaction_no_activity_timeout_[in|out] to 300s

  When slow clients post a large request, 30 seconds is too short for the current
  production usage. Short timeouts are rare but it always happens on POST, which
  is annoying for the user.

  Move from 30s to 5min the timeout to allow the slow clients upload their data
  with time.
---
 software/apache-frontend/buildout.hash.cfg                    | 2 +-
 .../templates/trafficserver/records.config.jinja2             | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/software/apache-frontend/buildout.hash.cfg b/software/apache-frontend/buildout.hash.cfg
index efadda97e..4f7ff8208 100644
--- a/software/apache-frontend/buildout.hash.cfg
+++ b/software/apache-frontend/buildout.hash.cfg
@@ -75,7 +75,7 @@ md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
 
 [template-trafficserver-records-config]
 filename = templates/trafficserver/records.config.jinja2
-md5sum = 7578b780c6bffdbadb130b796c874d29
+md5sum = 84baef0a49c9a65e8f2d2ffdb8c1d39c
 
 [template-trafficserver-storage-config]
 filename = templates/trafficserver/storage.config.jinja2
diff --git a/software/apache-frontend/templates/trafficserver/records.config.jinja2 b/software/apache-frontend/templates/trafficserver/records.config.jinja2
index e575b970d..b60b9438c 100644
--- a/software/apache-frontend/templates/trafficserver/records.config.jinja2
+++ b/software/apache-frontend/templates/trafficserver/records.config.jinja2
@@ -174,8 +174,8 @@ CONFIG proxy.config.http.forward.proxy_auth_to_parent INT 0
    # in : ua -> proxy connection
 CONFIG proxy.config.http.keep_alive_no_activity_timeout_in INT 115
 CONFIG proxy.config.http.keep_alive_no_activity_timeout_out INT 120
-CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 30
-CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 30
+CONFIG proxy.config.http.transaction_no_activity_timeout_in INT 300
+CONFIG proxy.config.http.transaction_no_activity_timeout_out INT 300
 CONFIG proxy.config.http.transaction_active_timeout_in INT 900
 CONFIG proxy.config.http.transaction_active_timeout_out INT 0
 CONFIG proxy.config.http.accept_no_activity_timeout INT 120
-- 
2.30.9