From 23263231fdd1c52aa6498947f783b928a7f04663 Mon Sep 17 00:00:00 2001 From: Logan Praneis Date: Wed, 13 Aug 2025 20:25:55 -0500 Subject: [PATCH] net: qualify that `SO_REUSEADDR` is only set on Unix (#7533) --- tokio/src/net/tcp/listener.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/net/tcp/listener.rs b/tokio/src/net/tcp/listener.rs index c611dbddd..c8f8be063 100644 --- a/tokio/src/net/tcp/listener.rs +++ b/tokio/src/net/tcp/listener.rs @@ -75,7 +75,7 @@ impl TcpListener { /// the addresses succeed in creating a listener, the error returned from /// the last attempt (the last address) is returned. /// - /// This function sets the `SO_REUSEADDR` option on the socket. + /// This function sets the `SO_REUSEADDR` option on the socket on Unix. /// /// To configure the socket before binding, you can use the [`TcpSocket`] /// type.