File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments