We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 27529ba + 1ee9d64 commit 006c09fCopy full SHA for 006c09f
Release/src/http/listener/http_server_asio.cpp
@@ -249,7 +249,12 @@ void connection::handle_http_line(const boost::system::error_code& ec)
249
if (ec)
250
{
251
// client closed connection
252
- if (ec == boost::asio::error::eof || ec == boost::asio::error::operation_aborted)
+ if (
253
+ ec == boost::asio::error::eof || // peer has performed an orderly shutdown
254
+ ec == boost::asio::error::operation_aborted || // this can be removed. ECONNABORTED happens only for accept()
255
+ ec == boost::asio::error::connection_reset || // connection reset by peer
256
+ ec == boost::asio::error::timed_out // connection timed out
257
+ )
258
259
finish_request_response();
260
}
0 commit comments