Commit 09bd9c94 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio: client: Should call shutdown_socket() on read error

parent ca4a40b8
......@@ -527,8 +527,9 @@ void session_impl::do_read() {
if (ec) {
if (!should_stop()) {
call_error_cb(ec);
shutdown_socket();
}
shutdown_socket();
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment