Created
December 9, 2014 03:22
-
-
Save willwhite/6afe2d333a002c33413f to your computer and use it in GitHub Desktop.
Isolated test case for https://github.com/aws/aws-sdk-js/issues/445.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var concurrency = 100; | |
var http = require('http'); | |
http.globalAgent.maxSockets = concurrency; | |
var AWS = require('aws-sdk'); | |
var s3 = new AWS.S3(); | |
for (var i = 0; i < concurrency; i++) { | |
s3.listBuckets(callback); | |
} | |
function callback(err) { if (err) throw err; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"aws-sdk": "^2.0.31" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ran on node v0.10.33 / c3.large / ubuntu-trusty-14.04-amd64-server-20140927 (ami-98aa1cf0).
Receive the following output when
concurrency
is set to100
or above: