We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16424dd commit 9161508Copy full SHA for 9161508
1 file changed
src/util.rs
@@ -24,6 +24,7 @@ pub fn read_all<R: Read>(r: &mut R, mut buf: &mut [u8]) -> io::Result<()> {
24
match r.read(&mut buf[start..]) {
25
Ok(0) => return Err(io::Error::new(io::ErrorKind::Other, "unexpected EOF")),
26
Ok(len) => start += len,
27
+ Err(ref e) if e.kind() == io::ErrorKind::Interrupted => {}
28
Err(e) => return Err(e),
29
}
30
0 commit comments