To the proposal for kanaka, I answer my question with the solution I found:
I did what I said, I will try, and this solved the problem (not quite sure why). Therefore, before initializing the server, I set http.globalAgent.maxSockets = 100 and https.globalAgent.maxSockets = 100 , and every time I use the request module, I add it to the callback: if (response) { response.resume(); } if (response) { response.resume(); }
Maybe this will help someone else :)
source share