diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-03-05 20:27:58 -0500 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-03-06 11:02:01 -0500 |
commit | c09c90c1a9e74ee4f29a051daf10bc4c5d5f7755 (patch) | |
tree | b94ecca33f11d0713518d434f9575b8f70e99ab0 /src/tls_wrap.h | |
parent | dccb69a21afc759e8827a5293ee8648d3ba354b0 (diff) | |
download | android-node-v8-c09c90c1a9e74ee4f29a051daf10bc4c5d5f7755.tar.gz android-node-v8-c09c90c1a9e74ee4f29a051daf10bc4c5d5f7755.tar.bz2 android-node-v8-c09c90c1a9e74ee4f29a051daf10bc4c5d5f7755.zip |
tls_wrap: do not hold persistent ref to parent
Hold non-persistent reference in JS, rather than in C++ to avoid cycles.
PR-URL: https://github.com/iojs/io.js/pull/1078
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index 73a9f84ec0..9f095355bb 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -78,8 +78,7 @@ class TLSWrap : public crypto::SSLWrap<TLSWrap>, TLSWrap(Environment* env, Kind kind, StreamBase* stream, - v8::Handle<v8::Object> stream_obj, - v8::Handle<v8::Object> sc); + crypto::SecureContext* sc); static void SSLInfoCallback(const SSL* ssl_, int where, int ret); void InitSSL(); @@ -141,9 +140,7 @@ class TLSWrap : public crypto::SSLWrap<TLSWrap>, #endif // SSL_CTRL_SET_TLSEXT_SERVERNAME_CB crypto::SecureContext* sc_; - v8::Persistent<v8::Object> sc_handle_; StreamBase* stream_; - v8::Persistent<v8::Object> stream_handle_; BIO* enc_in_; BIO* enc_out_; NodeBIO* clear_in_; |