On Feb 10, 3:22 pm, mscdex <[email protected]> wrote:
> 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?

No particular reason, I just want the reconnect call to only happen
once? Maybe a 'close' event can happen even if an error doesn't?
Covering my bases?

> On a semi-related note: on line 80 of the same file, you're using the
> port number as the hostname when reconnecting. Typo?

Wow, thanks. Definitely a typo, I think this was at least partially
causing the issue.

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