On Feb 10, 2:50 pm, Geoff Flarity <[email protected]> wrote: > This sort of makes sense to me. The dns lookup fails so node doesn't > even try to create a connection. If the connection doesn't even get > attempted, then there's no reason to emit a 'close' event on that > connection. But then how do I code around this?
Why not try to reconnect in the error handler instead? On a semi-related note: on line 80 of the same file, you're using the port number as the hostname when reconnecting. Typo? -- 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
