Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: demonstrate max_header_list_size hang #3723

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading