Skip to content

Commit 2326323

Browse files
authored
net: qualify that SO_REUSEADDR is only set on Unix (#7533)
1 parent 8652874 commit 2326323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio/src/net/tcp/listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl TcpListener {
7575
/// the addresses succeed in creating a listener, the error returned from
7676
/// the last attempt (the last address) is returned.
7777
///
78-
/// This function sets the `SO_REUSEADDR` option on the socket.
78+
/// This function sets the `SO_REUSEADDR` option on the socket on Unix.
7979
///
8080
/// To configure the socket before binding, you can use the [`TcpSocket`]
8181
/// type.

0 commit comments

Comments
 (0)