Categories
JavaScript Answers

How to fix Node.js only processing six requests at a time?

Spread the love

To fix Node.js only processing six requests at a time, we can increase the max number of sockets.

To do this, we write

http.globalAgent.maxSockets = 20;

to increase the max number of simultaneous requests to 20.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published.