Fix bug with large HTTP requests leading to Bad Request in osrm-routed. (#6403)

This commit is contained in:
Siarhei Fedartsou
2022-10-13 16:53:49 +02:00
committed by GitHub
parent 4026ed54c0
commit d143de597d
5 changed files with 64 additions and 12 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ class Connection : public std::enable_shared_from_this<Connection>
boost::asio::deadline_timer timer;
RequestHandler &request_handler;
std::optional<RequestParser> http_request_parser;
boost::array<char, 8192> incoming_data_buffer;
std::vector<char> incoming_data_buffer;
http::request current_request;
http::reply current_reply;
std::vector<char> compressed_output;