From b86bf6b610e29827f8a3d29ea88ba3dc5fb69ea9 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Thu, 6 Jun 2019 14:41:50 +0800 Subject: [PATCH] fix for reconnecting --- include/rpc_client.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/rpc_client.hpp b/include/rpc_client.hpp index d0bd487..e6fc974 100644 --- a/include/rpc_client.hpp +++ b/include/rpc_client.hpp @@ -461,7 +461,6 @@ namespace rest_rpc { void reset_socket(){ boost::system::error_code igored_ec; - socket_.shutdown(asio::ip::tcp::socket::shutdown_both, igored_ec); socket_.close(igored_ec); socket_ = decltype(socket_)(ios_); if(!socket_.is_open()){