Commit 8bcd0a4c authored by Florin-Cristian Gavrila's avatar Florin-Cristian Gavrila Committed by Julien Gilli
Browse files

http: fix performance regression for GET requests

A significant performance regressions has been introduced in 1fddc1fe for
GET requests which send data through response.end(). The number of
requests per second dropped to somewhere around 6% of their previous
level.

The fix consists of removing a part of the lines added by 1fddc1fe,
lines which were supposed to affect only HEAD requests, but interfered
with GET requests instead.

The lines removed would not have affected the behaviour in the case of
a HEAD request as this._hasBody would always be false. Therefore, they
were not required to fix the issue reported in #8361.

Fixes #8940.

PR: #9026
PR-URL: https://github.com/joyent/node/pull/9026


Reviewed-By: default avatarJulien Gilli <julien.gilli@joyent.com>
parent d01a9000
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