valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.94k stars 1.76k forks source link

When `StreamRequestBody` is set to `true`, we cannot safely release `br` #1844

Closed newacorn closed 2 months ago

newacorn commented 3 months ago

For example, when using chunked encoding, it's possible that br has only read the request headers.Even br.Buffered() == 0.

erikdubbelboer commented 2 months ago

Thanks!