Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FillBuf: don't poll a second time on EOF
There is no hard guarantee that polling a second time will return Poll::Ready, and this is particularly likely to break in the EOF case, which is precisely where we don't need to do so at all. Both tokio::io::BufReader and futures::io::BufReader always attempt to read from the underlying reader when the buffer is empty, rather than fusing EOF.
- Loading branch information