YahooArchive / arrow

FE Test framework designed to promote TDD
http://yahoo.github.io/arrow/arrow_intro.html
BSD 3-Clause "New" or "Revised" License
55 stars 59 forks source link

Proxy redirects maxing out for same host at 5 #194

Closed ericedem closed 10 years ago

ericedem commented 10 years ago

In some testing, we make several get requests for beacons on the same host, and they all get redirected. The proxy is using http.request to make these calls, and for some reason the sockets are getting kept alive, which is blocking subsequent beacon firings after the first 5. This is due to the default max request setting for http.request for the same host:

http://stackoverflow.com/questions/16472497/nodejs-max-socket-pooling-settings

This can be fixed by:

options.agent = false;
http.request(options, func() { ...

I will create a pull request for this.