From a26d3aec961fbb748217f853ba33af7007736b8b Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 28 Apr 2020 19:44:33 +0200 Subject: [PATCH] net: mention that bind sets SO_REUSEADDR (#2454) --- tokio/src/net/tcp/listener.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio/src/net/tcp/listener.rs b/tokio/src/net/tcp/listener.rs index aa2ffcf28..262e0e1d5 100644 --- a/tokio/src/net/tcp/listener.rs +++ b/tokio/src/net/tcp/listener.rs @@ -87,6 +87,8 @@ 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. + /// /// # Examples /// /// ```no_run