On Tue, Nov 26, 2013 at 10:36 AM, Ben Noordhuis <[email protected]> wrote:

> No.  OpenSSL moves the TLS connection into shutdown mode when a
> CLOSE_NOTIFY alert arrives.  As far as node.js is concerned, that
> means the connection is terminated / terminating.
>

FWIW node doesn't actually pick this up unless you poll
pair.ssl.receivedShutdown, which I consider to be a bug so I'll file
something on github.

Here's the ugly "fix" I had to add to Haraka so that SSL connections don't
hang indefinitely:

            var interval_timer = setInterval(function () {
                if (pair.ssl.receivedShutdown) {
                    log.logdebug("Received Shutdown!");
                    clearInterval(interval_timer);
                    socket.end();
                }
            }, 1000);

(not 100% sure this is the right fix, but it means things get cleaned up at
least)

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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to