aboutsummaryrefslogtreecommitdiffhomepage
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
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.
-rw-r--r--.bleep2
-rw-r--r--pingora-header-serde/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/.bleep b/.bleep
index dcda9dd..0db9482 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-8f4c536768b4ed3720cc4a6e651d0ed519aa6a60 \ No newline at end of file
+a3c90366d4cf12236bba71d5f95289e220efcdae \ No newline at end of file
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> {