about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-18 11:18:11 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-18 11:18:11 +0000
commit94acc35b6bc42ca02033d111534b6f8135a724eb (patch)
tree5b383bb2b2e488591028b33d2706c902cf3fe7bf
parentab067831e707b191d6dfdcd01de1f1d85fc90d05 (diff)
downloadyahns-94acc35b6bc42ca02033d111534b6f8135a724eb.tar.gz
Rainbows!/unicorn (and nginx) were designed when migrating clients
between threads/processes was not feasible.  yahns expires based on
FD pressure, so it should not need an arbitrary limit (but the Rack
app may specify "Connection: close" to kill a connection.
-rw-r--r--lib/yahns/http_client.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb
index 8171460..ff6e203 100644
--- a/lib/yahns/http_client.rb
+++ b/lib/yahns/http_client.rb
@@ -5,6 +5,9 @@ require 'yahns/tiny_input'
 class Yahns::HttpClient < Kgio::Socket # :nodoc:
   NULL_IO = Yahns::TinyInput.new("")
 
+  # FIXME: we shouldn't have this at all
+  Unicorn::HttpParser.keepalive_requests = 0xffffffff
+
   include Yahns::HttpResponse
   include Yahns::ClientExpire
   QEV_FLAGS = Yahns::Queue::QEV_RD # used by acceptor