Unverified Commit ed0a97a5 authored by cjihrig's avatar cjihrig Committed by Myles Borins
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 4b98ff29
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