Skip to content

Conversation

@armanbilge
Copy link
Member

This is the bug I discovered while working on #2958 (comment). Skunk also hit it in typelevel/skunk#696. This was a regression due to #2957.

If an error occurred during TLS handshaking on Node.js it was hanging waiting on the 'secure'/'secureConnect' event to indicate the handshake completed. This PR relocates the 'error' listener such that it will short-circuit the await for a 'secure'/'secureConnect' event if it emits.

@armanbilge armanbilge changed the title Listen for errors during JS TLS handshaking to prevent hanging Short-circuit JS TLS handshake if an error event is emitted Aug 13, 2022
@armanbilge armanbilge changed the title Short-circuit JS TLS handshake if an error event is emitted Short-circuit JS TLS handshake listener if an error event is emitted Aug 13, 2022
@mpilquist mpilquist merged commit 4773bfe into typelevel:main Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants