configurator: add client_max_header_size directive
commit281ef555c40cf292809ad10d623d0571fafc790e
authorEric Wong <normalperson@yhbt.net>
Sat, 11 Jun 2011 06:35:12 +0000 (11 06:35 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 11 Jun 2011 06:35:12 +0000 (11 06:35 +0000)
treee13fb2af08c6896b53f244bcf6efb36a9c730051
parent1f3e7b1c7ee89aefdcadd4aebd7b0527baa188a3
configurator: add client_max_header_size directive

Lowering this will lower worst-case memory usage and mitigate some
denial-of-service attacks.  This should be larger than
client_header_buffer_size.

The default value is carried over from Mongrel and Unicorn.
lib/rainbows/configurator.rb
lib/rainbows/http_server.rb
t/t0045-client_max_header_size.sh [new file with mode: 0755]