Skip to content

Commit 89cbddd

Browse files
committed
add log
1 parent 94e88da commit 89cbddd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/syscall/windows/connect.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ impl<I: ConnectSyscall> ConnectSyscall for NioConnectSyscall<I> {
5050
set_non_blocking(fd);
5151
}
5252
let mut r = self.inner.connect(fn_ptr, fd, address, len);
53+
eprintln!("connect {r} error:{}", Error::last_os_error());
5354
loop {
5455
if r == 0 {
5556
reset_errno();
@@ -75,6 +76,7 @@ impl<I: ConnectSyscall> ConnectSyscall for NioConnectSyscall<I> {
7576
&mut len,
7677
);
7778
}
79+
eprintln!("connect getsockopt {r} error:{}", Error::last_os_error());
7880
if r != 0 {
7981
r = -1;
8082
break;
@@ -89,6 +91,7 @@ impl<I: ConnectSyscall> ConnectSyscall for NioConnectSyscall<I> {
8991
let mut address_len = std::mem::zeroed();
9092
r = getpeername(fd, &mut address, &mut address_len);
9193
}
94+
eprintln!("getpeername {r} error:{}", Error::last_os_error());
9295
} else if errno != Some(WSAEINTR) {
9396
break;
9497
}

0 commit comments

Comments
 (0)