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 @@ -378,12 +378,6 @@ TLSSocket.prototype._wrapHandle = function(wrap) {
378
378
res = null ;
379
379
} ) ;
380
380
381
- if ( wrap ) {
382
- wrap . on ( 'close' , function ( ) {
383
- res . onStreamClose ( ) ;
384
- } ) ;
385
- }
386
-
387
381
return res ;
388
382
} ;
389
383
Original file line number Diff line number Diff line change @@ -789,14 +789,6 @@ void TLSWrap::EnableSessionCallbacks(
789
789
}
790
790
791
791
792
- void TLSWrap::OnStreamClose (const FunctionCallbackInfo<Value>& args) {
793
- TLSWrap* wrap;
794
- ASSIGN_OR_RETURN_UNWRAP (&wrap, args.Holder ());
795
-
796
- wrap->stream_ = nullptr ;
797
- }
798
-
799
-
800
792
void TLSWrap::DestroySSL (const FunctionCallbackInfo<Value>& args) {
801
793
TLSWrap* wrap;
802
794
ASSIGN_OR_RETURN_UNWRAP (&wrap, args.Holder ());
@@ -927,7 +919,6 @@ void TLSWrap::Initialize(Local<Object> target,
927
919
env->SetProtoMethod (t, " enableSessionCallbacks" , EnableSessionCallbacks);
928
920
env->SetProtoMethod (t, " destroySSL" , DestroySSL);
929
921
env->SetProtoMethod (t, " enableCertCb" , EnableCertCb);
930
- env->SetProtoMethod (t, " onStreamClose" , OnStreamClose);
931
922
932
923
StreamBase::AddMethods<TLSWrap>(env, t, StreamBase::kFlagHasWritev );
933
924
SSLWrap<TLSWrap>::AddMethods (env, t);
Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ class TLSWrap : public AsyncWrap,
140
140
static void EnableCertCb (
141
141
const v8::FunctionCallbackInfo<v8::Value>& args);
142
142
static void DestroySSL (const v8::FunctionCallbackInfo<v8::Value>& args);
143
- static void OnStreamClose (const v8::FunctionCallbackInfo<v8::Value>& args);
144
143
145
144
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
146
145
static void GetServername (const v8::FunctionCallbackInfo<v8::Value>& args);
You can’t perform that action at this time.
0 commit comments