summaryrefslogtreecommitdiff
path: root/src/tls_wrap.h
diff options
context:
space:
mode:
authorjBarz <jbarboza@ca.ibm.com>2017-03-09 08:33:59 -0500
committerJames M Snell <jasnell@gmail.com>2017-03-16 16:24:07 -0700
commit4cdb0e89d8daf7e1371c3b8d3f057940aa327d4a (patch)
treebe4bd839b2144fd0eab50eff62976c6f8a4d3ce1 /src/tls_wrap.h
parent303962aca192e28b5ec5a74da9f53d9f26e52359 (diff)
downloadandroid-node-v8-4cdb0e89d8daf7e1371c3b8d3f057940aa327d4a.tar.gz
android-node-v8-4cdb0e89d8daf7e1371c3b8d3f057940aa327d4a.tar.bz2
android-node-v8-4cdb0e89d8daf7e1371c3b8d3f057940aa327d4a.zip
tls: keep track of stream that is closed
TLSWrap object keeps a pointer reference to the underlying TCPWrap object. This TCPWrap object could be closed and deleted by the event-loop which leaves us with a dangling pointer. So the TLSWrap object needs to track the "close" event on the TCPWrap object. PR-URL: https://github.com/nodejs/node/pull/11776 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
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 d0313bd308..d6c4b62493 100644
--- a/src/tls_wrap.h
+++ b/src/tls_wrap.h
@@ -158,6 +158,7 @@ class TLSWrap : public AsyncWrap,
static void EnableCertCb(
const v8::FunctionCallbackInfo<v8::Value>& args);
static void DestroySSL(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void OnStreamClose(const v8::FunctionCallbackInfo<v8::Value>& args);
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
static void GetServername(const v8::FunctionCallbackInfo<v8::Value>& args);