async-compression
async-compression copied to clipboard
`Encoder` does not follow the `tokio::io::AsyncWrite` protocol
Until Encoder returns Poll::Ready from poll_shutdown, it should expect calls to poll_flush and poll_shutdown any number of times, and not return an error.
This is the same as https://github.com/Nullus157/async-compression/issues/246
Test case available at #309