Handle multi-frame zstd streams split across chunks#946
Conversation
|
@mbeijen I'm confused. Do you agree with the suggestion or not? 👀 |
|
Sorry for the confusion @Kludex — I went the opposite direction on the squash and should have explained. Your suggestion (top-of- The post-decompress swap avoids this because the decompressor is always fresh when the next Happy to switch to a top-check + |
Fixes encode/httpx#3538 Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
|
HAHAHAHA Claude answered for me while I was checking to see if or how we can go each way. Anyway you read the text, we can avoid seen_eof flag but we must handle empty frames AND eof both |
Fixes encode/httpx#3538
Without this, zstandard decompression is broken on some servers, such as for instance
This is extra important since httpx2 now automatically adds zstd content decoding because it uses built-in zstandard instead of only being active when the package is installed!