File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
boost/network/protocol/http/server Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,7 @@ namespace boost { namespace network { namespace http {
148
148
149
149
~async_connection () throw () {
150
150
boost::system::error_code ignored;
151
- socket_.shutdown (asio::ip::tcp::socket::shutdown_both, ignored);
152
- socket_.close (ignored);
151
+ socket_.shutdown (asio::ip::tcp::socket::shutdown_receive, ignored);
153
152
}
154
153
155
154
/* * Function: template <class Range> set_headers(Range headers)
Original file line number Diff line number Diff line change @@ -247,8 +247,7 @@ namespace boost { namespace network { namespace http {
247
247
if (!ec) {
248
248
using boost::asio::ip::tcp;
249
249
boost::system::error_code ignored_ec;
250
- socket_.shutdown (tcp::socket::shutdown_both, ignored_ec);
251
- socket_.close (ignored_ec);
250
+ socket_.shutdown (tcp::socket::shutdown_receive, ignored_ec);
252
251
}
253
252
}
254
253
You can’t perform that action at this time.
0 commit comments