From 09bd9c94a3fdb6e74763f942b4bbec0459b6bc2b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 22 Dec 2015 00:40:22 +0900 Subject: [PATCH] asio: client: Should call shutdown_socket() on read error --- src/asio_client_session_impl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asio_client_session_impl.cc b/src/asio_client_session_impl.cc index 3be7b20d..4aeee74d 100644 --- a/src/asio_client_session_impl.cc +++ b/src/asio_client_session_impl.cc @@ -527,8 +527,9 @@ void session_impl::do_read() { if (ec) { if (!should_stop()) { call_error_cb(ec); - shutdown_socket(); } + shutdown_socket(); + return; }