From d217b49abe740b4c80282bd2d4fb1be4afbadcda Mon Sep 17 00:00:00 2001
From: Pierre Ozoux <pierre@ozoux.net>
Date: Wed, 12 Oct 2016 16:07:03 +0100
Subject: [PATCH] keepalive ftw!

---
 templates/haproxy.cfg.tmpl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/haproxy.cfg.tmpl b/templates/haproxy.cfg.tmpl
index 4d05e14..8797133 100644
--- a/templates/haproxy.cfg.tmpl
+++ b/templates/haproxy.cfg.tmpl
@@ -10,6 +10,7 @@ defaults
   mode http
   option forwardfor
   option httpclose
+  option http-server-close
   option httplog
   option dontlognull
   retries 3
@@ -39,6 +40,7 @@ mode http
 
 {{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
 backend {{ $host }}
+  option http-server-close
   cookie SERVERID insert nocache indirect
   {{ range $container := $containers }}
   server Server {{ $container.IP }}:80 cookie Server
-- 
GitLab