about summary refs log tree commit homepage
path: root/lib/yahns/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r--lib/yahns/config.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb
index e39115c..2b71fe5 100644
--- a/lib/yahns/config.rb
+++ b/lib/yahns/config.rb
@@ -18,6 +18,10 @@ class Yahns::Config # :nodoc:
     @config_file = config_file
     @block = nil
     config_reload!
+
+    # FIXME: we shouldn't have this at all when we go Unicorn 5-only
+    Unicorn::HttpParser.respond_to?(:keepalive_requests=) and
+      Unicorn::HttpParser.keepalive_requests = 0xffffffff
   end
 
   def _check_in_block(ctx, var)