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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy