Fix unix connect (#19)
* Add some debug info * Fix a bug in UnixStream connect
This commit is contained in:
parent
defb205c6a
commit
efaac5dc4c
|
@ -1180,7 +1180,7 @@ impl Async<UnixStream> {
|
|||
socket
|
||||
.connect(&socket2::SockAddr::unix(path)?)
|
||||
.or_else(|err| {
|
||||
if err.raw_os_error() == Some(libc::EINPROGRESS) {
|
||||
if err.kind() == io::ErrorKind::WouldBlock {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(err)
|
||||
|
|
Loading…
Reference in New Issue