From f356bd0e6348f9e6902202e79f8558f258bd56a9 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 23 Dec 2018 10:33:01 +0100 Subject: [PATCH] also close http connections after each request via haproxy --- modules/roles/templates/snapshot/haproxy.cfg.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/roles/templates/snapshot/haproxy.cfg.erb b/modules/roles/templates/snapshot/haproxy.cfg.erb index dbe39d243..b7115349d 100644 --- a/modules/roles/templates/snapshot/haproxy.cfg.erb +++ b/modules/roles/templates/snapshot/haproxy.cfg.erb @@ -50,6 +50,10 @@ frontend front_ssl default_backend backend option http-keep-alive + # We rate-limit requests by clients. + # Currently, we do that at the netfilter level, so one + # request per connection works best. + option httpclose #option redispatch backend backend -- 2.20.1