Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid possibility of missing remote address when TLS handshake fails #188

Merged
merged 1 commit into from
Jan 6, 2019

Conversation

clue
Copy link
Member

@clue clue commented Jan 6, 2019

This fixes a race condition where the remote address could appear to be
"emtpy" in the server exception message, that could occur when the
connection to the peer was already closed during the TLS handshake. This
is simply avoided by getting the remote address prior to starting the
TLS handshake, in which case the remote address is known to exist.

Builds on top of #185, discovered while working on #186

This fixes a race condition where the remote address could appear to be
"emtpy" in the server exception message, that could occur when the
connection to the peer was already closed during the TLS handshake. This
is simply avoided by getting the remote address prior to starting the
TLS handshake, in which case the remote address is known to exist.
@clue clue added this to the v1.2.0 milestone Jan 6, 2019
@clue clue requested review from jsor and WyriHaximus January 6, 2019 19:17
Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@jsor jsor merged commit 2d51865 into reactphp:master Jan 6, 2019
@clue clue deleted the handshake-address branch January 6, 2019 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants