diff options
author | Edward Wang <[email protected]> | 2024-06-25 11:38:15 -0700 |
---|---|---|
committer | Edward Wang <[email protected]> | 2024-06-28 12:34:25 -0700 |
commit | a483902c46fc43736fc5a27a5048b292493536b3 (patch) | |
tree | 465342b61ce9672a5a77ab9f2f9bc9e01067c0b8 | |
parent | c67b5d0141af939827777c66e95fbb530ca14d33 (diff) | |
download | pingora-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-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-header-serde/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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> { |