My environment:

- node v0.7.4
- server listenning on loopback port 9000
- client connected to server
- client events (timeout, error, end) listened and console'd
- client retries connection when lost (based on any of the above events)

After having client and server up I use tcpkill to simulate TCP RESET:

# tcpkill -i lo port 9000

Randomly (after a few client reconnects or sometimes on the first one), the client doesn't yeld anything and the process just ends (because I have nothing
left on the loop).

I can avoid this using process.on("exit") and force the process not to end and assume the client disconnected but I would like not to use this. Am I doing
something wrong?

Should I test on 0.6.x ?

--
Diogo R.

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to