Skip to content

Instantly share code, notes, and snippets.

@markdaws
Created February 13, 2012 01:00
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save markdaws/1812319 to your computer and use it in GitHub Desktop.
function runTestCase3() {
createServer('127.0.0.1', PORT_BASE);
createServer('127.0.0.1', PORT_BASE + 1);
http.globalAgent.maxSockets = 10;
for(var i=0;i<100; ++i) {
http.request({
host: '127.0.0.1',
port: PORT_BASE,
method: 'GET'
}, function(res) {
}).end();
http.request({
host: '127.0.0.1',
port: PORT_BASE + 1,
method: 'GET'
}, function(res) {
}).end();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment