javascript - What does agent.maxSockets really mean? -
the official doc on agent.maxsockets says indicates limit on how many concurrent sockets http(s) server can have. did tests http.globalagent.maxsockets set 5 , expected can have 5 open websockets. turns out can have more 50 open websockets.
can explain agent.maxsockets mean?
http.agent instances used outbound http clients (e.g. via http.request()), not inbound clients http.server. if use http.agent maxsockets set 5 http.request(), there @ 5 connected sockets particular server @ given time.
Comments
Post a Comment