Increase Node.js network connections
Been writing a lot of high throughput client/server apps lately and seen a lot of performance optimization possible with this little config. Make sure to test in your environment to find your magic int.
// increase nodejs maximum socket connections (defaults 5)
require("http").globalAgent.maxSockets = 10;
Written by Montana Flynn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Http
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#