Hi,

I have a generic-pool class that creates SMTP connections, and as I need to 
quickly abort and try another host if the host I am currently connecting to 
is down - all of the sockets are created with:

socket.setTimeout(5 * 1000);
socket.on('connect', function () {
    this.setTimeout(0);
});
socket.on('timeout', function () {
    this.destroy();
});

However when running this in production; everything works for a short 
period - then the socket connections start to 'hang' during connect() and 
instead of hitting the on('timeout') and forcing the connection to close 
after 5 seconds I receive an ETIMEDOUT error after several minutes instead.

Can anyone give me any clues why this is happening?

Thanks in advance.

Steve.

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