litellm/litellm-rust/crates/gateway-hooks
Nate Armstrong 607700b6b6
fix(gateway): stop hooks pinning connection read buffers for a stream's life (#47220)
The s3 logger asks for the response text, and the tap kept every
response chunk as a Bytes slice of the upstream connection's read
buffer, so each open stream held a buffer per chunk until it ended
(about 460 KB per open 10k-token stream locally). Chunks are now copied
into one owned buffer.

The same applies on the request side: the facts kept the raw request
slice and a clone of the client headers, both slices of the client
connection's read buffer. The body is now released once hooks have run
(an owned copy is kept only when an observer reads it) and the headers
are copied.
2026-10-19 10:48:10 -07:00
..
src fix(gateway): stop hooks pinning connection read buffers for a stream's life (#47220) 2026-10-19 10:48:10 -07:00
Cargo.toml feat(gateway): enforce key, team, user, member and end-user budgets on shared spend counters (#47044) 2026-10-19 09:58:44 -07:00