http_parser: handle keepalive_requests internally
commit5d1e2f0ada7d63ad539bac7597d27ef2c4de2cdd
authorEric Wong <e@80x24.org>
Sat, 14 Nov 2015 02:47:21 +0000 (14 02:47 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Nov 2015 02:20:20 +0000 (18 02:20 +0000)
tree99637aa9d8bd445f4436a6fa78b5c4d25fc9b572
parent3706ec9dce706d8cde76cafff1f3a24776435830
http_parser: handle keepalive_requests internally

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.
lib/rainbows/http_parser.rb
lib/rainbows/http_server.rb