From 145974bc92d4c3ff2257be4f8ad1cd80b5556eb2 Mon Sep 17 00:00:00 2001 From: Denis Chaplygin Date: Mon, 9 Sep 2019 11:20:47 +0300 Subject: [PATCH] clear input/output buffers during keepalive clean-up procedure. Should fix #5545 --- src/server/connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/connection.cpp b/src/server/connection.cpp index 9cc713a9a..ed3a726c6 100644 --- a/src/server/connection.cpp +++ b/src/server/connection.cpp @@ -149,6 +149,8 @@ void Connection::handle_write(const boost::system::error_code &error) current_request = http::request(); current_reply = http::reply(); request_parser = RequestParser(); + incoming_data_buffer = boost::array(); + output_buffer.clear(); this->start(); } else