What's the best way to deal with closed socket connections?

I have a simple node.js socket server, and a client in Flash.  If I refresh
my web browser, the node.js socket server gets an 'end' event, Node knows
the connection is closed. All is well.

However, if the network were to have a problem (for instance someone
unplugs and replugs an ethernet cable on the client computer). The socket
connection is broken, but the server does not get an 'end' 'close' or other
event that I can see.

Node thinks the connection is still open. When node tries to write to that
connection, node crashes.

What's the best way to deal with this situation?

-- 
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