Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-04-26 15:26:57 +0300
committerFedor Indutny <fedor@indutny.com>2015-04-30 12:01:56 +0300
commit2d241b3b82d246881c8a6bcc7148d59349309d5f (patch)
tree21043729dee6476b0e7aa69011fac05e3e4b216e /src/tls_wrap.h
parent73062521a424614fccfe6399b47030ee065e1977 (diff)
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 9f095355bb5..25088d30261 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);