diff --git a/plugins/http_plugin/include/eosio/http_plugin/beast_http_session.hpp b/plugins/http_plugin/include/eosio/http_plugin/beast_http_session.hpp index 2ac3ebb5a4..6496d51ac5 100644 --- a/plugins/http_plugin/include/eosio/http_plugin/beast_http_session.hpp +++ b/plugins/http_plugin/include/eosio/http_plugin/beast_http_session.hpp @@ -295,9 +295,10 @@ class beast_http_session : public detail::abstract_conn, void on_read_header(beast::error_code ec, std::size_t /* bytes_transferred */) { if(ec) { - if(ec == http::error::end_of_stream) // other side closed the connection + // See on_read comment below + if(ec == http::error::end_of_stream || ec == asio::error::connection_reset) return do_eof(); - + return fail(ec, "read_header", plugin_state_.get_logger(), "closing connection"); }