File tree Expand file tree Collapse file tree 3 files changed +0
-16
lines changed Expand file tree Collapse file tree 3 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -399,12 +399,6 @@ TLSSocket.prototype._wrapHandle = function(wrap) {
399
399
res = null ;
400
400
} ) ;
401
401
402
- if ( wrap ) {
403
- wrap . on ( 'close' , function ( ) {
404
- res . onStreamClose ( ) ;
405
- } ) ;
406
- }
407
-
408
402
return res ;
409
403
} ;
410
404
Original file line number Diff line number Diff line change @@ -815,14 +815,6 @@ void TLSWrap::EnableSessionCallbacks(
815
815
}
816
816
817
817
818
- void TLSWrap::OnStreamClose (const FunctionCallbackInfo<Value>& args) {
819
- TLSWrap* wrap;
820
- ASSIGN_OR_RETURN_UNWRAP (&wrap, args.Holder ());
821
-
822
- wrap->stream_ = nullptr ;
823
- }
824
-
825
-
826
818
void TLSWrap::DestroySSL (const FunctionCallbackInfo<Value>& args) {
827
819
TLSWrap* wrap;
828
820
ASSIGN_OR_RETURN_UNWRAP (&wrap, args.Holder ());
@@ -953,7 +945,6 @@ void TLSWrap::Initialize(Local<Object> target,
953
945
env->SetProtoMethod (t, " enableSessionCallbacks" , EnableSessionCallbacks);
954
946
env->SetProtoMethod (t, " destroySSL" , DestroySSL);
955
947
env->SetProtoMethod (t, " enableCertCb" , EnableCertCb);
956
- env->SetProtoMethod (t, " onStreamClose" , OnStreamClose);
957
948
958
949
StreamBase::AddMethods<TLSWrap>(env, t, StreamBase::kFlagHasWritev );
959
950
SSLWrap<TLSWrap>::AddMethods (env, t);
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ class TLSWrap : public AsyncWrap,
161
161
static void EnableCertCb (
162
162
const v8::FunctionCallbackInfo<v8::Value>& args);
163
163
static void DestroySSL (const v8::FunctionCallbackInfo<v8::Value>& args);
164
- static void OnStreamClose (const v8::FunctionCallbackInfo<v8::Value>& args);
165
164
166
165
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
167
166
static void GetServername (const v8::FunctionCallbackInfo<v8::Value>& args);
You can’t perform that action at this time.
0 commit comments