Prevent parse errors after failing to deliver a client request with body
authorFabian Keil <fk@fabiankeil.de>
Sat, 24 Jan 2015 16:42:57 +0000 (16:42 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 24 Jan 2015 16:42:57 +0000 (16:42 +0000)
commitf8d5fd3d89f98dd2c18ccfafe51e163998e4f4fd
tree12e9634a60fb18af94cfff23a58f5ca74f29399f
parente529b002e809e6e8b9b95dd9cd03533cbdd7bc62
Prevent parse errors after failing to deliver a client request with body

For now we err on the safe side and simply throw all the following
requests under the bus, even if no client body has been buffered.
A compliant client will repeat the dropped requests on an untainted
connection.

The proper fix is to discard the no longer needed client body
in the buffer (if there is one) and to continue parsing the
bytes that follow. This is less trivial and will have to wait
until the next release.

Reported by Basil Hussain.
jcc.c