Skip to content

Commit bb620b1

Browse files
committed
Handle WSAETIMEDOUT in ErrorKind translation
1 parent 6768ca9 commit bb620b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/sys/windows/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
6060
libc::WSAEINVAL => ErrorKind::InvalidInput,
6161
libc::WSAENOTCONN => ErrorKind::NotConnected,
6262
libc::WSAEWOULDBLOCK => ErrorKind::WouldBlock,
63+
libc::WSAETIMEDOUT => ErrorKind::TimedOut,
6364

6465
_ => ErrorKind::Other,
6566
}

0 commit comments

Comments
 (0)