Closed
Description
This is the current poll method for tokio::io::copy
and tokio::io::copy_bidirectional
.
tokio/tokio/src/io/util/copy.rs
Lines 28 to 76 in adad8fc
However, as long as self.cap < 2048
, it would be possible to attempt to read more data into the buffer. We should do this. One might also consider copying data from the end of the buffer to the start to make space for further reading.
See also #3572.