aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-header-serde
diff options
context:
space:
mode:
authorEdward Wang <[email protected]>2024-06-25 11:38:15 -0700
committerEdward Wang <[email protected]>2024-06-28 12:34:25 -0700
commita483902c46fc43736fc5a27a5048b292493536b3 (patch)
tree465342b61ce9672a5a77ab9f2f9bc9e01067c0b8 /pingora-header-serde
parentc67b5d0141af939827777c66e95fbb530ca14d33 (diff)
downloadpingora-a483902c46fc43736fc5a27a5048b292493536b3.tar.gz
pingora-a483902c46fc43736fc5a27a5048b292493536b3.zip
Change max allowed resp headers in HeaderSerde to match H1 max
Currently the allowed max is hardcoded, the HeaderSerde should match the H1 max count to avoid problems deserializing from cache.
Diffstat (limited to 'pingora-header-serde')
-rw-r--r--pingora-header-serde/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pingora-header-serde/src/lib.rs b/pingora-header-serde/src/lib.rs
index 73b9b29..e78897a 100644
--- a/pingora-header-serde/src/lib.rs
+++ b/pingora-header-serde/src/lib.rs
@@ -131,7 +131,7 @@ fn resp_header_to_buf(resp: &ResponseHeader, buf: &mut Vec<u8>) -> usize {
}
// Should match pingora http1 setting
-const MAX_HEADERS: usize = 160;
+const MAX_HEADERS: usize = 256;
#[inline]
fn buf_to_http_header(buf: &[u8]) -> Result<ResponseHeader> {