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 b24b1b0501..f8ef408f5f 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 @@ -492,8 +492,9 @@ class beast_http_session : public detail::abstract_conn, void run_session() { if(auto error_str = verify_max_requests_in_flight(); !error_str.empty()) { + res_->keep_alive(false); send_busy_response(std::move(error_str)); - return do_eof(); + return; } do_read_header();