summaryrefslogtreecommitdiff
path: root/src/tls_wrap.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-04-26 14:26:57 +0200
committerFedor Indutny <fedor@indutny.com>2015-04-30 11:01:56 +0200
commit2d241b3b82d246881c8a6bcc7148d59349309d5f (patch)
tree21043729dee6476b0e7aa69011fac05e3e4b216e /src/tls_wrap.h
parent73062521a424614fccfe6399b47030ee065e1977 (diff)
downloadandroid-node-v8-2d241b3b82d246881c8a6bcc7148d59349309d5f.tar.gz
android-node-v8-2d241b3b82d246881c8a6bcc7148d59349309d5f.tar.bz2
android-node-v8-2d241b3b82d246881c8a6bcc7148d59349309d5f.zip
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>
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r--src/tls_wrap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h
index 9f095355bb..25088d3026 100644
--- a/src/tls_wrap.h
+++ b/src/tls_wrap.h
@@ -132,6 +132,7 @@ class TLSWrap : public crypto::SSLWrap<TLSWrap>,
const v8::FunctionCallbackInfo<v8::Value>& args);
static void EnableHelloParser(
const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void DestroySSL(const v8::FunctionCallbackInfo<v8::Value>& args);
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
static void GetServername(const v8::FunctionCallbackInfo<v8::Value>& args);