summaryrefslogtreecommitdiffstats
path: root/tokio
diff options
context:
space:
mode:
authorAlice Ryhl <alice@ryhl.io>2020-04-28 19:44:33 +0200
committerGitHub <noreply@github.com>2020-04-28 19:44:33 +0200
commita26d3aec961fbb748217f853ba33af7007736b8b (patch)
treec994db69d1ed4784909c10c6ab279a74b8ab73cb /tokio
parenta81958484941ddcc2f1955fb6873c827f694ec9b (diff)
net: mention that bind sets SO_REUSEADDR (#2454)
Diffstat (limited to 'tokio')
-rw-r--r--tokio/src/net/tcp/listener.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tokio/src/net/tcp/listener.rs b/tokio/src/net/tcp/listener.rs
index aa2ffcf2..262e0e1d 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