Commit 4f98e2de authored by Ryan Dahl's avatar Ryan Dahl
Browse files

Fix buffering logic for HTTP outgoing messages.

Was sending two packets instead of one for some short messages, and even 3,
for short chunked-encoded messages. Also use the more general Encode()
function for receiving HTTP bodies.

Gives ~6% improvement on "hello world" web server benchmarks.
parent f389f923
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment