Commit b497a313 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Return proper error on aborted SSL client handshake.

parent ab40a385
......@@ -79,6 +79,7 @@ client_handshake( Stream&& con
ssl_sock->async_handshake(ssl::stream_base::client, yield[ec]);
if (abort_signal) ec = boost::asio::error::operation_aborted;
if (ec) return or_throw<GenericStream>(yield, ec);
static const auto ssl_shutter = [](ssl::stream<Stream>& s) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment