diff options
author | Eric Wong <e@80x24.org> | 2015-11-14 02:47:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-11-18 02:20:20 +0000 |
commit | 5d1e2f0ada7d63ad539bac7597d27ef2c4de2cdd (patch) | |
tree | 99637aa9d8bd445f4436a6fa78b5c4d25fc9b572 /lib/rainbows/http_server.rb | |
parent | 3706ec9dce706d8cde76cafff1f3a24776435830 (diff) | |
download | rainbows-5d1e2f0ada7d63ad539bac7597d27ef2c4de2cdd.tar.gz |
unicorn 5 dropped support for this, essentially allowing unlimited persistent connections if we used the parser as-is. Since most of our concurrency models cannot handle infinite persistent connections without being vulnerable to DoS, we must support keepalive_requests like nginx does.
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 637710d..09f2589 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -92,11 +92,11 @@ class Rainbows::HttpServer < Unicorn::HttpServer end def keepalive_requests=(nr) - Unicorn::HttpRequest.keepalive_requests = nr + Rainbows::HttpParser.keepalive_requests = nr end def keepalive_requests - Unicorn::HttpRequest.keepalive_requests + Rainbows::HttpParser.keepalive_requests end def client_max_header_size=(bytes) |