[Bug]: gzip response middleware compresses up to 1 MiB on the event loop: an 824 KB embeddings response stalls the worker ~165 ms
![[Bug]: gzip response middleware compresses up to 1 MiB on the event loop: an 824 KB embeddings response stalls the worker ~165 ms](https://www.chat-gpts.plus/wp-content/uploads/2026/10/46339-ddf4b7ca-768x403.jpg)
当 LiteLLM Proxy 客户端发送 Accept-Encoding: gzip 且响应体达到 500 B 以上时,小于 1 MiB 的响应会在事件循环上做 gzip 压缩;824 KB 的 embeddings 响应会把 worker 卡住约 165 ms,导致同一 worker 上其他请求








