Skip to content

Commit efaac5d

Browse files
author
Stjepan Glavina
authored
Fix unix connect (async-rs#19)
* Add some debug info * Fix a bug in UnixStream connect
1 parent defb205 commit efaac5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ impl Async<UnixStream> {
11801180
socket
11811181
.connect(&socket2::SockAddr::unix(path)?)
11821182
.or_else(|err| {
1183-
if err.raw_os_error() == Some(libc::EINPROGRESS) {
1183+
if err.kind() == io::ErrorKind::WouldBlock {
11841184
Ok(())
11851185
} else {
11861186
Err(err)

0 commit comments

Comments
 (0)