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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -