about summary refs log tree commit homepage
path: root/lib/yahns/http_client.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-12-15 08:18:59 +0000
committerEric Wong <e@80x24.org>2015-12-15 08:22:53 +0000
commit1105a6957eed26a922a27bd6e6dbbc457524b664 (patch)
tree9e8c2a06ea99a60054ae60ccd7c1eec1fbad9d58 /lib/yahns/http_client.rb
parent0ffe20a3310e2c98c49034d2135ac41069d2fd85 (diff)
downloadyahns-1105a6957eed26a922a27bd6e6dbbc457524b664.tar.gz
We do not expose any sort of API beyond what's in the config file
manpage to our users.  Do not mislead them into thinking we
currently have a stable API (though I'm considering one).

This avoids wasting disk space and installation time for users who
do not have a: "gem: --no-ri --no-rdoc" line in their ~/.gemrc
Diffstat (limited to 'lib/yahns/http_client.rb')
-rw-r--r--lib/yahns/http_client.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb
index db53587..8a341f9 100644
--- a/lib/yahns/http_client.rb
+++ b/lib/yahns/http_client.rb
@@ -2,11 +2,7 @@
 # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net>
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
 class Yahns::HttpClient < Kgio::Socket # :nodoc:
-  NULL_IO = StringIO.new("")
-
-  # 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
+  NULL_IO = StringIO.new('') # :nodoc:
 
   include Yahns::HttpResponse
   QEV_FLAGS = Yahns::Queue::QEV_RD # used by acceptor