about summary refs log tree commit homepage
path: root/lib/yahns
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns')
-rw-r--r--lib/yahns/config.rb4
-rw-r--r--lib/yahns/http_client.rb6
-rw-r--r--lib/yahns/proxy_pass.rb2
-rw-r--r--lib/yahns/sendfile_compat.rb4
4 files changed, 8 insertions, 8 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)
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
diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb
index 9512318..728ab3e 100644
--- a/lib/yahns/proxy_pass.rb
+++ b/lib/yahns/proxy_pass.rb
@@ -10,7 +10,7 @@ require 'timeout'
 require_relative 'proxy_http_response'
 
 class Yahns::ProxyPass # :nodoc:
-  class ReqRes < Kgio::Socket
+  class ReqRes < Kgio::Socket # :nodoc:
     attr_writer :resbuf
     attr_accessor :proxy_trailers
 
diff --git a/lib/yahns/sendfile_compat.rb b/lib/yahns/sendfile_compat.rb
index da2a9ec..bd79c0c 100644
--- a/lib/yahns/sendfile_compat.rb
+++ b/lib/yahns/sendfile_compat.rb
@@ -2,7 +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)
 
-module Yahns::SendfileCompat
+module Yahns::SendfileCompat # :nodoc:
   def trysendfile(io, offset, count)
     return 0 if count == 0
     count = 0x4000 if count > 0x4000
@@ -22,6 +22,6 @@ module Yahns::SendfileCompat
   end
 end
 
-class IO
+class IO # :nodoc:
   include Yahns::SendfileCompat
 end