diff options
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index d6c4b62493..f1d53f3e2f 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -75,6 +75,8 @@ class TLSWrap : public AsyncWrap, size_t self_size() const override { return sizeof(*this); } + void clear_stream() { stream_ = nullptr; } + protected: static const int kClearOutChunkSize = 16384; @@ -142,6 +144,7 @@ class TLSWrap : public AsyncWrap, const uv_buf_t* buf, uv_handle_type pending, void* ctx); + static void OnDestructImpl(void* ctx); void DoRead(ssize_t nread, const uv_buf_t* buf, uv_handle_type pending); |