tls, https: add tls handshake timeout
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 3 Dec 2012 17:29:01 +0000 (18:29 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 6 Dec 2012 16:39:24 +0000 (17:39 +0100)
commit5b65638124233e914f523af4c09f391d1ad969c1
tree9e1df8da600bdf75b5aba48b1bfdd49c816c7953
parent3ece130ea21cdf18844e0ca99b4b73e3b3391286
tls, https: add tls handshake timeout

Don't allow connections to stall indefinitely if the SSL/TLS handshake does
not complete.

Adds a new tls.Server and https.Server configuration option, handshakeTimeout.

Fixes #4355.
doc/api/tls.markdown
lib/tls.js
test/simple/test-https-timeout-server-2.js [new file with mode: 0644]
test/simple/test-https-timeout-server.js [new file with mode: 0644]
test/simple/test-tls-timeout-server-2.js [new file with mode: 0644]
test/simple/test-tls-timeout-server.js [new file with mode: 0644]