On Mar 17, 2015, at 4:10 AM, Spab Rice <[email protected]> wrote:
> 
> Hello,
> 
> I'm new to node.js.
> My script creates/open too many TCP Sockets which I don't have any plan how 
> to prevent this?
> 
> Please see the StackOverflow link to have full details of my problem.
> http://stackoverflow.com/questions/29077409/node-js-requires-to-many-tcp-sockets
> 
> Does anyone have some tips for me? Is my code bad?
> Any help is really appreciated.
> 


Looks like you are using socket.io? You may wish to listen for close/end events 
to gracefully shutdown client communications — check the socket.io docs for the 
specific events (I haven’t used socket.io in a while). Does your service have a 
lot of clients?

        —ravi


-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/A200052B-0DCB-44F2-9850-DE629BA5CBDD%40g8o.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to