Skip to content

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 WyriHaximus and jsor 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