Skip to content

Commit

Permalink
tests: demonstrate max_header_list_size hang
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwerner committed Aug 2, 2024
1 parent 7de0237 commit bdd112e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bdd112e

Please sign in to comment.