We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b716a commit 5b9e00cCopy full SHA for 5b9e00c
src/sys/windows.rs
@@ -112,7 +112,7 @@ impl Socket {
112
pub fn connect_timeout(&self, addr: &SockAddr, timeout: Duration) -> io::Result<()> {
113
self.set_nonblocking(true)?;
114
let r = self.connect(addr);
115
- self.set_nonblocking(true)?;
+ self.set_nonblocking(false)?;
116
117
match r {
118
Ok(()) => return Ok(()),
0 commit comments