GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tls_wrap: invoke queued callbacks in DestroySSL · nodejs/node@59d9734

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • tls_wrap.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/tls_wrap.cc‎

Copy file name to clipboardExpand all lines: src/tls_wrap.cc
+9-6Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ TLSWrap::~TLSWrap() {
8686
sni_context_.Reset();
8787
#endif // SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
8888

89-
// Move all writes to pending
90-
MakePending();
91-
92-
// And destroy
93-
InvokeQueued(UV_ECANCELED);
94-
9589
ClearError();
9690
}
9791

@@ -770,7 +764,16 @@ void TLSWrap::EnableSessionCallbacks(
770764

771765
void TLSWrap::DestroySSL(const FunctionCallbackInfo<Value>& args) {
772766
TLSWrap* wrap = Unwrap<TLSWrap>(args.Holder());
767+
768+
// Move all writes to pending
769+
wrap->MakePending();
770+
771+
// And destroy
772+
wrap->InvokeQueued(UV_ECANCELED);
773+
774+
// Destroy the SSL structure and friends
773775
wrap->SSLWrap<TLSWrap>::DestroySSL();
776+
774777
delete wrap->clear_in_;
775778
wrap->clear_in_ = nullptr;
776779
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.