about summary refs log tree commit homepage
path: root/lib/unicorn/socket_helper.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-03-02 21:03:59 +0000
committerEric Wong <e@80x24.org>2015-03-02 21:06:34 +0000
commit5fba71ea0821beeb922b4da763ab58abc1c954c4 (patch)
tree81c9cfb2dd79f1cb5a2cc4a464b71c84e9eb99b3 /lib/unicorn/socket_helper.rb
parentaec741b2b9b1b02f00cb3c5def34da23017d50cc (diff)
downloadunicorn-5fba71ea0821beeb922b4da763ab58abc1c954c4.tar.gz
We had HTTPS support but dropped it(*) and some wacky servers out
there do work better with TCP_DEFER_ACCEPT disabled.

(*) No, we will not support HTTP/2, that is for nginx
Diffstat (limited to 'lib/unicorn/socket_helper.rb')
-rw-r--r--lib/unicorn/socket_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb
index a4247ac..a321ddf 100644
--- a/lib/unicorn/socket_helper.rb
+++ b/lib/unicorn/socket_helper.rb
@@ -16,7 +16,7 @@ module Unicorn
       :tcp_defer_accept => 1,
 
       # FreeBSD, we need to override this to 'dataready' if we
-      # eventually get HTTPS support
+      # eventually support non-HTTP/1.x
       :accept_filter => 'httpready',
 
       # same default value as Mongrel
@@ -53,8 +53,8 @@ module Unicorn
         end
       end
 
-      # No good reason to ever have deferred accepts off
-      # (except maybe benchmarking)
+      # No good reason to ever have deferred accepts off in single-threaded
+      # servers (except maybe benchmarking)
       if Socket.const_defined?(:TCP_DEFER_ACCEPT)
         # this differs from nginx, since nginx doesn't allow us to
         # configure the the timeout...