http: allow headers/trailers to be written byte-wise
commit2c9cbe383ce8049707eda87c632855995a65e032
authorEric Wong <normalperson@yhbt.net>
Thu, 5 Nov 2009 07:00:49 +0000 (4 23:00 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 Nov 2009 07:00:59 +0000 (4 23:00 -0800)
treedd595da82ff97d39c38551c0bca227fe6046cc2b
parentf6c63f950d033e28567fabfc47a57f938c4cbabf
http: allow headers/trailers to be written byte-wise

This allows clients to trickle headers and trailers.  While
Unicorn itself does not support slow clients for many reasons,
this affects servers that depend on our parser like Rainbows!.
This actually does affect Unicorn when handling trailers, but
HTTP trailers are very ever rarely used in requests.

Fortunately this stupid bug does not seem able to trigger
out-of-bounds conditions.
ext/unicorn_http/unicorn_http.rl
test/unit/test_http_parser_ng.rb