You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sys/unix.rs
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1502,7 +1502,15 @@ impl crate::Socket {
1502
1502
}
1503
1503
1504
1504
/// Sets `SO_PEERCRED` to null on the socket.
1505
-
/// It disables the initial handshake of unix domain sockets.
1505
+
/// This is a Cygwin extension.
1506
+
///
1507
+
/// Normally the Unix domain sockets of Cygwin are implemented by TCP sockets,
1508
+
/// so it performs a handshake on `connect` and `accept`, to verify the remote
1509
+
/// connection and exchange peer cred info. Therefore, `connect` blocks until
1510
+
/// the server `accept`s it. This option turns off the handshake. Both client
1511
+
/// and server should turn it off to let `connect` returns immediately.
1512
+
///
1513
+
/// See also: the [mailing list](https://inbox.sourceware.org/cygwin/TYCPR01MB10926FF8926CA63704867ADC8F8AA2@TYCPR01MB10926.jpnprd01.prod.outlook.com/)
0 commit comments