Skip to content

Instantly share code, notes, and snippets.

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