forked from boostorg/beast
Clear the error faster
This commit is contained in:
1 parent
fc09a4cad1
commit
4d393f4c2a
28 files changed
+117
-116
No files matched your search
@@ -178,7 +178,7 @@ operator()(error_code ec,
|
||||
{
|
||||
// Rationale:
|
||||
// http://stackoverflow.com/questions/25587403/boost-asio-ssl-async-shutdown-always-finishes-with-an-error
|
||||
ec = {};
|
||||
ec.assign(0, ec.category());
|
||||
}
|
||||
if(! ec)
|
||||
{
|
||||
@@ -960,7 +960,7 @@ do_close:
|
||||
{
|
||||
// Rationale:
|
||||
// http://stackoverflow.com/questions/25587403/boost-asio-ssl-async-shutdown-always-finishes-with-an-error
|
||||
ec = {};
|
||||
ec.assign(0, ec.category());
|
||||
}
|
||||
failed_ = ec != 0;
|
||||
if(failed_)
|
||||
@@ -975,7 +975,7 @@ do_close:
|
||||
if(ec == boost::asio::error::eof)
|
||||
{
|
||||
// (See above)
|
||||
ec = {};
|
||||
ec.assign(0, ec.category());
|
||||
}
|
||||
}
|
||||
if(! ec)
|
||||
|
||||
@@ -302,7 +302,7 @@ do_response(http::header<false> const& res,
|
||||
ec = error::handshake_failed;
|
||||
return;
|
||||
}
|
||||
ec = {};
|
||||
ec.assign(0, ec.category());
|
||||
detail::pmd_offer offer;
|
||||
pmd_read(offer, res);
|
||||
// VFALCO see if offer satisfies pmd_config_,
|
||||
|
||||
Reference in new issue
Block a user