tls: zero SSL_CTX freelist for a singleUse socket
authorFedor Indutny <fedor@indutny.com>
Sun, 26 Apr 2015 12:19:38 +0000 (14:19 +0200)
committerFedor Indutny <fedor@indutny.com>
Thu, 30 Apr 2015 09:02:26 +0000 (11:02 +0200)
commit2684c902c4ff90711e57e787c5bfe0bac33bcd49
tree6a68650b9a5fd30ce3db86a36ee738c3617dbfd4
parente6874dd0f9c62a515b64ed35a4806f667152b6ec
tls: zero SSL_CTX freelist for a singleUse socket

When connecting to server with `keepAlive` turned off - make sure that
the read/write buffers won't be kept in a single use SSL_CTX instance
after the socket will be destroyed.

Fix: https://github.com/iojs/io.js/issues/1522
PR-URL: https://github.com/iojs/io.js/pull/1529
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
lib/_tls_common.js
lib/_tls_wrap.js
src/node_crypto.cc
src/node_crypto.h