-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsyncReadDecompressor reads Ok(0)
before EOF is reached
#4
Comments
Close by a318259 |
This is not fixed. I'll open a PR later today. |
I found this crate that handles the encoding & decoding. I'm wondering whether submitting a patch would be simpler. |
@jean-airoldie Is it related to this issue? |
I mean indirectly. We could base the code on their generic state machine to correctly implement the async encoding & decoding. But I'm wondering of the benefits this might have over submitting a patch to add lz4 support. |
You mean move async feature from this crate to async-compression? One concern is the complexity of API. Though this crate has a lot of LZ4F options, the encoder interface of |
Merged into #12 |
Basically if the read / write buffer is small enough (less than 54 bytes),
AsyncReadCompressor::poll_read
returnsPoll::Ready(Ok(0))
, which is the sentinel forEOF
, even though we haven't actually reached end of file.Here is the example. It uses my
async_std
branch because it makes the code simpler, but its also an issue on master.The text was updated successfully, but these errors were encountered: