Skip to content

Commit c328c70

Browse files
rkubesBillyONeal
authored andcommitted
Allow error handling for time out in http_client_asio handle_connect (#1097)
1 parent 621f47a commit c328c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/client/http_client_asio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ class asio_context final : public request_context, public std::enable_shared_fro
10101010
else if (ec.value() == boost::system::errc::operation_canceled ||
10111011
ec.value() == boost::asio::error::operation_aborted)
10121012
{
1013-
request_context::report_error(ec.value(), "Request canceled by user.");
1013+
report_error("Request canceled by user.", ec, httpclient_errorcode_context::connect);
10141014
}
10151015
else if (endpoints == tcp::resolver::iterator())
10161016
{

0 commit comments

Comments
 (0)