Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing aborted causing duplicate res.ends issue with incoming request #912

Merged
merged 1 commit into from
Jun 4, 2013

Conversation

geek
Copy link
Member

@geek geek commented Jun 4, 2013

No description provided.

hueniverse pushed a commit that referenced this pull request Jun 4, 2013
Fixing aborted causing duplicate res.ends issue with incoming request
@hueniverse hueniverse merged commit aab0196 into hapijs:master Jun 4, 2013
@@ -175,8 +177,13 @@ internals.Stream.prototype._transmit = function (request, callback) {

this._stream.once('error', end);

request.raw.req.once('close', end);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just moved it down. I removed the listener because the close event is emitted right after aborted, so it wasn't necessary. https://github.com/joyent/node/blob/v0.10.8-release/lib/http.js#L1886

jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
Fixing aborted causing duplicate res.ends issue with incoming request
@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants