Re: [nodejs] Cannot establish more connections to tcp.createServer()

14 views
Skip to first unread message
Message has been deleted

r...@tinyclouds.org

unread,
Jul 12, 2010, 1:39:36 PM7/12/10
to nod...@googlegroups.com
On Thu, Jul 8, 2010 at 7:45 AM, Sharief Shaik <shar...@gmail.com> wrote:
> Hi all,
>
> I have been using node.js in a comet based system on a iphone
> application. I have created a tcp socket connection on port 8080 and
> added listeners to handle the incoming requests. But, I have observed
> the connections do not create after the node.js server is up and
> running and had received a few hundred connections. If I killed and
> restarted the server, the connections keep happening again. Being a
> novice to node.js, I couldn't figure out why no more connections are
> established after a while. Can somebody give a clue what I'm doing
> wrong here.
>
> Also can someone point me to how I can load test the connections.


You shouldn't turn off the idle timeout - it's possible for a peer to
just disappear without explicitly closing the connection (i.e. no
'end' event will be emitted). You should close the connection in the
'timeout' listener.

Reply all
Reply to author
Forward
0 new messages