Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segmenatation fault if connection is closed during handshake (#399)
Fixes #398 ### Motivation There is an implicit requirement for the `async_handshake` API that before it's done, the `socket` and `ssl::stream` objects must exist. Otherwise segmenatation fault might happen. ### Modifications Capture `socket_` and `tlsSocket_` in the handshake callback. It can be verified by modifying the code according to #398 and rerun the test.
- Loading branch information