From bdd112e9ea7df40bed65922faac68d77543e1763 Mon Sep 17 00:00:00 2001 From: Andrew Werner Date: Fri, 2 Aug 2024 12:51:13 -0400 Subject: [PATCH] tests: demonstrate max_header_list_size hang --- tests/integration.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index 2deee443f8..d6ff075bff 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -61,6 +61,30 @@ t! { ; } +// Test that clients get responses when the server sends a response with +// headers that are too large by just a bit. +t! { + long_header_response, + client: + request: + ; + response: + status: 500, + headers: { + }, + ; + server: + request: + ; + response: + status: 500, + headers: { + // Just above DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE. + "error" => ("a".repeat(16 << 10 + 1)), + }, + ; +} + t! { get_body, client: