Unverified Commit b94ce575 authored by cjihrig's avatar cjihrig
Browse files

tls: prevent multiple connection errors

onConnectEnd(), which is called by TLSSocket, has a guard to
prevent being called multiple times, but it does not prevent the
OpenSSL error handler from being called, leading to multiple
error events. This commit adds that piece of missing logic.

PR-URL: https://github.com/nodejs/node/pull/23636
Fixes: https://github.com/nodejs/node/issues/23631


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarWyatt Preul <wpreul@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent e2f58c71
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment