Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions boost/network/protocol/http/server/async_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ namespace boost { namespace network { namespace http {

~async_connection() throw () {
boost::system::error_code ignored;
socket_.shutdown(asio::ip::tcp::socket::shutdown_both, ignored);
socket_.close(ignored);
socket_.shutdown(asio::ip::tcp::socket::shutdown_receive, ignored);
}

/** Function: template <class Range> set_headers(Range headers)
Expand Down
3 changes: 1 addition & 2 deletions boost/network/protocol/http/server/sync_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ namespace boost { namespace network { namespace http {
if (!ec) {
using boost::asio::ip::tcp;
boost::system::error_code ignored_ec;
socket_.shutdown(tcp::socket::shutdown_both, ignored_ec);
socket_.close(ignored_ec);
socket_.shutdown(tcp::socket::shutdown_receive, ignored_ec);
}
}

Expand Down