http: support keepalive_requests directive
commit7ad59e0c48e12febae2a2fe86b76116c05977c6f
authorEric Wong <normalperson@yhbt.net>
Mon, 20 Dec 2010 00:14:52 +0000 (20 00:14 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 20 Dec 2010 00:14:52 +0000 (20 00:14 +0000)
tree9fe5ba22397adc11adb1b62aa4ae221b1bead596
parent82ea9b442a9edaae6dc3b06a5c61035b2c2924c9
http: support keepalive_requests directive

This limits the number of keepalive requests of a single
connection to prevent a single client from monopolizing server
resources.  On multi-process servers (e.g. Rainbows!) with many
keepalive clients per worker process, this can force a client to
reconnect and increase its chances of being accepted on a
less-busy worker process.

This directive is named after the nginx directive which
is identical in function.
ext/unicorn_http/unicorn_http.rl
test/unit/test_http_parser_ng.rb