Call `MakeWeak()` to destruct TLSCallbacks when the js-object dies.
fix #8416
Reviewed-By: Fedor Indutny <fedor@indutny.com>
cycle_depth_(0),
eof_(false) {
node::Wrap<TLSCallbacks>(object(), this);
+ MakeWeak(this);
// Initialize queue for clearIn writes
QUEUE_INIT(&write_item_queue_);
public StreamWrapCallbacks,
public AsyncWrap {
public:
+ ~TLSCallbacks();
+
static void Initialize(v8::Handle<v8::Object> target,
v8::Handle<v8::Value> unused,
v8::Handle<v8::Context> context);
Kind kind,
v8::Handle<v8::Object> sc,
StreamWrapCallbacks* old);
- ~TLSCallbacks();
static void SSLInfoCallback(const SSL* ssl_, int where, int ret);
void InitSSL();