Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: fix performance regression for GET requests
A significant performance regressions has been introduced in 1fddc1f 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 1fddc1f, 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: nodejs/node-v0.x-archive#9026 Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
- Loading branch information