Skip to content

Additional Proxy config parameter to allow connection pooling to be turned off#274

Closed
mur-dog wants to merge 3 commits intoionic-team:masterfrom
mur-dog:master
Closed

Additional Proxy config parameter to allow connection pooling to be turned off#274
mur-dog wants to merge 3 commits intoionic-team:masterfrom
mur-dog:master

Conversation

@mur-dog
Copy link
Copy Markdown

@mur-dog mur-dog commented Feb 27, 2015

I have been using the proxy feature to avoid CORS issues to our API. API server is JHipster/Tomcat8.

However we have been running into an annoying problem - after 5 livereloads our application would stop working. Upon debugging I tracked down the issue to the proxy hanging - it looks like for some reason the proxy is not properly releasing/marking the Http request as complete. So the default HttpAgent spins up a new socket connection (up to 5) before getting into a blocked state.

This addition allows the proxy request to opt out of the default connection pooling by passing agent=false to the http request - and prevents the deadlock issue.

@jbavari jbavari self-assigned this Mar 2, 2015
@jbavari
Copy link
Copy Markdown

jbavari commented Mar 2, 2015

Nice fix. I'll look at this today.

@jbavari
Copy link
Copy Markdown

jbavari commented Mar 4, 2015

@mur-dog - due to some pretty big changes to serve.js, I had to merge this in manually. Thanks for the contribution!

@jbavari jbavari closed this in b75b722 Mar 5, 2015
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.

2 participants