reactphp / socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
https://reactphp.org/socket/
MIT License
1.2k stars 156 forks source link

Fix closing connection when cancelling during TLS handshake #241

Closed clue closed 4 years ago

clue commented 4 years ago

This changeset fixes closing the pending connection attempt when the connection is cancelled during the TLS handshake. This is a minor oversight from the previous cleanup in https://github.com/reactphp/socket/commit/15426bdcb905511915ec2784448e32f08375d45b#diff-fa535a0ca5a2f2df7b368c67e3bfd18dL66. This is now covered by some higher level integration tests to ensure correct system behavior.