diff options
author | Alice Ryhl <alice@ryhl.io> | 2020-04-28 19:44:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 19:44:33 +0200 |
commit | a26d3aec961fbb748217f853ba33af7007736b8b (patch) | |
tree | c994db69d1ed4784909c10c6ab279a74b8ab73cb /tokio | |
parent | a81958484941ddcc2f1955fb6873c827f694ec9b (diff) |
net: mention that bind sets SO_REUSEADDR (#2454)
Diffstat (limited to 'tokio')
-rw-r--r-- | tokio/src/net/tcp/listener.rs | 2 |
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 |