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

Exhaust error reponse bodies to avoid connection pool stall. #3

Merged
merged 1 commit into from
Jul 1, 2015
Merged

Exhaust error reponse bodies to avoid connection pool stall. #3

merged 1 commit into from
Jul 1, 2015

Conversation

alexjeffburke
Copy link
Contributor

Hey,

Landing this on mine mainly for the purposes of review - I'll land it directly once we've had a chance to discuss it.

I think the fix works by correctly exhausting the body. The test sets the maxSockets really low such that it will only succeed if the sockets were correctly closed and I got the code down to only an additional include of http, although it does start a server up.

AJB

@alexjeffburke
Copy link
Contributor Author

PS just realised I am probably not cleaning up the server in the commit, am aware of it (:

@papandreou
Copy link
Collaborator

Looks sound to me overall. I cannot test it until Friday, but you're welcome to land it.

@alexjeffburke
Copy link
Contributor Author

Thanks very much for peeking at this Andreas, enjoy your break!

@alexjeffburke alexjeffburke merged commit 64899e6 into One-com:master Jul 1, 2015
@alexjeffburke alexjeffburke deleted the fix-connection-pool-stall branch July 1, 2015 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants