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

Proxy requests are closed when server response already sent #906

Merged
merged 3 commits into from
May 31, 2013

Conversation

geek
Copy link
Member

@geek geek commented May 31, 2013

No description provided.


req.destroy();
req.setTimeout(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this for?

Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -49,6 +51,11 @@ exports.request = function (method, url, options, callback, _trace) {

req.removeAllListeners();
req.on('error', Utils.ignore);
clearTimeout(timeoutId);

if (options.response && finishListener) {
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need this since request._reply will clean it up.

hueniverse pushed a commit that referenced this pull request May 31, 2013
Proxy requests are closed when server response already sent
@hueniverse hueniverse merged commit 2912e22 into hapijs:master May 31, 2013
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
Proxy requests are closed when server response already sent
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants