Skip to content

Commit bdd112e

Browse files
committed
tests: demonstrate max_header_list_size hang
1 parent 7de0237 commit bdd112e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/integration.rs

+24
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,30 @@ t! {
6161
;
6262
}
6363

64+
// Test that clients get responses when the server sends a response with
65+
// headers that are too large by just a bit.
66+
t! {
67+
long_header_response,
68+
client:
69+
request:
70+
;
71+
response:
72+
status: 500,
73+
headers: {
74+
},
75+
;
76+
server:
77+
request:
78+
;
79+
response:
80+
status: 500,
81+
headers: {
82+
// Just above DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE.
83+
"error" => ("a".repeat(16 << 10 + 1)),
84+
},
85+
;
86+
}
87+
6488
t! {
6589
get_body,
6690
client:

0 commit comments

Comments
 (0)