The size_hint for the Timeout stream is wrong #3901
Labels
A-tokio-stream
Area: The tokio-stream crate
C-bug
Category: This is a bug.
M-time
Module: tokio/time
The timeout stream currently provides the following
size_hint
tokio/tokio-stream/src/stream_ext/timeout.rs
Lines 71 to 73 in d35ff70
However the timeout stream may insert additional errors into the stream, and those must be counted in the size hint's upper bound.
The text was updated successfully, but these errors were encountered: