Remove upper limit for HTTP headers size

This commit is contained in:
Siarhei Fedartsou 2022-10-12 20:40:45 +02:00
parent 4026ed54c0
commit ce49810d3c
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,67 @@
@stress
Feature: Large requests
Background:
Given the profile "testbot"
Scenario: Table request with a lot of input coordinates
Given the node map
"""
a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
"""
And the ways
| nodes |
| ab |
| bc |
| cd |
| de |
| ef |
| fg |
| gh |
| hi |
| ij |
| jk |
| kl |
| lm |
| mn |
| no |
| op |
| pq |
| qr |
| rs |
| st |
| tu |
| uv |
| vw |
| wx |
| xy |
| yz |
| zA |
| AB |
| BC |
| CD |
| DE |
| EF |
| FG |
| GH |
| HI |
| IJ |
| JK |
| KL |
| LM |
| MN |
| NO |
| OP |
| PQ |
| QR |
| RS |
| ST |
| TU |
| UV |
| VW |
| WX |
| XY |
| YZ |
When I request a travel distance matrix I should get
| | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| f | 0 | 300 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| g | 300 | 0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

View File

@ -183,6 +183,7 @@ void Connection::handle_write(const boost::system::error_code &error)
current_request = http::request();
current_reply = http::reply();
http_request_parser.emplace();
http_request_parser->header_limit(std::numeric_limits<std::uint32_t>::max());
incoming_data_buffer = boost::array<char, 8192>();
output_buffer.clear();
this->start();