|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, two HTTP requests within the same read() would both
be parsed by http_parser_execute (and corrupted state).
We don't support this, since we distinguish between reading and
writing parts of the server action, and there's no way to let
poll perform the writing part in this case.
Detect pipelining by pausing the parser in on_message_complete and
checking if we parsed fewer bytes than we passed. Then handle the
first request and drop the connection; a compliant HTTP client must
retry without pipelining.
Found by @duncaen.
Signed-off-by: Leah Neukirchen <leah@vuxu.org>
|