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

Already on GitHub? Sign in to your account

Switch to new HTTP API and force use of keepalives in a socket per client #44

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant

nbertram commented May 9, 2012

I made a switch from http.createClient to http.request, the new API. I also made a custom agent for each client that restricts a client to one socket, otherwise the default maxSockets of 5 means each new command to Selenium opens a new connection to the server. When dealing with Saucelabs, the Selenium server is quite a long way away, so the socket open time becomes quite significant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment