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.
This commit is contained in:
Edward Wang 2024-06-25 11:38:15 -07:00 committed by Edward Wang
parent c67b5d0141
commit a483902c46
2 changed files with 2 additions and 2 deletions

2
.bleep
View file

@ -1 +1 @@
8f4c536768b4ed3720cc4a6e651d0ed519aa6a60 a3c90366d4cf12236bba71d5f95289e220efcdae

View file

@ -131,7 +131,7 @@ fn resp_header_to_buf(resp: &ResponseHeader, buf: &mut Vec<u8>) -> usize {
} }
// Should match pingora http1 setting // Should match pingora http1 setting
const MAX_HEADERS: usize = 160; const MAX_HEADERS: usize = 256;
#[inline] #[inline]
fn buf_to_http_header(buf: &[u8]) -> Result<ResponseHeader> { fn buf_to_http_header(buf: &[u8]) -> Result<ResponseHeader> {