Skip to content

Net: Defer reading until listeners could be added#1496

Closed
jameshartig wants to merge 1 commit intonodejs:masterfrom
jameshartig:tlsDefer
Closed

Net: Defer reading until listeners could be added#1496
jameshartig wants to merge 1 commit intonodejs:masterfrom
jameshartig:tlsDefer

Conversation

@jameshartig
Copy link
Contributor

Defer reading until user-land has a chance to add listeners. This
allows the TLS wrapper to listen for _tlsError and trigger a
clientError event if the socket already has data that could trigger.

Fixes #1114

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Already buffered data when creating a TLSSocket doesn't trigger/throw 'error'

5 participants