Skip to content

Commit 913ada7

Browse files
committed
Fixes http::async_connection::default_error that always set error flag
1 parent 3410708 commit 913ada7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/protocol/http/server/async_connection.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ struct async_connection
334334
}
335335

336336
void default_error(boost::system::error_code const& ec) {
337-
error_encountered = in_place<boost::system::system_error>(ec);
337+
if (ec) error_encountered = in_place<boost::system::system_error>(ec);
338338
}
339339

340340
typedef boost::array<char, BOOST_NETWORK_HTTP_SERVER_CONNECTION_BUFFER_SIZE>

0 commit comments

Comments
 (0)