guilin 桂林
guilin 桂林

Reputation: 17422

Does nodejs http client has a limit concurrency connection

When I request too much resources of one site, some request will occurs NS_ERROR_CONNECTION_REFUSED error. How to fix?

http.request(options, callback)

Upvotes: 1

Views: 939

Answers (1)

Michelle Tilley
Michelle Tilley

Reputation: 159105

This is likely a limitation of the server you're connecting to and not Node.js. This is usually implemented to keep people from opening too many connections (much like you're trying to do. :)

Upvotes: 4

Related Questions