We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10158d5 commit b50ac1eCopy full SHA for b50ac1e
1 file changed
compio-tls/src/stream/rtls.rs
@@ -96,7 +96,9 @@ impl<S: io::Read> TlsStream<S> {
96
fn read_impl<T>(&mut self, mut f: impl FnMut(Reader) -> io::Result<T>) -> io::Result<T> {
97
loop {
98
while self.conn.wants_read() {
99
- self.conn.read_tls(&mut self.inner)?;
+ if self.conn.read_tls(&mut self.inner)? == 0 {
100
+ break;
101
+ }
102
self.conn.process_new_packets().map_err(io::Error::other)?;
103
}
104
0 commit comments