tls: destroy SSL once it is out of use
authorFedor Indutny <fedor@indutny.com>
Sun, 26 Apr 2015 12:26:57 +0000 (14:26 +0200)
committerFedor Indutny <fedor@indutny.com>
Thu, 30 Apr 2015 09:01:56 +0000 (11:01 +0200)
commit2d241b3b82d246881c8a6bcc7148d59349309d5f
tree21043729dee6476b0e7aa69011fac05e3e4b216e
parent73062521a424614fccfe6399b47030ee065e1977
tls: destroy SSL once it is out of use

Do not keep SSL structure in memory once socket is closed. This should
lower the memory usage in many cases.

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_wrap.js
src/node_crypto.cc
src/node_crypto.h
src/tls_wrap.cc
src/tls_wrap.h