@@ -54,16 +54,12 @@ impl fmt::Debug for UnixListener {
5454}
5555
5656impl UnixListener {
57- /// Default "backlog" for [`UnixListener::bind`] and
58- /// [`UnixListener::bind_addr`]. See [`UnixListener::bind_with_backlog`]
59- /// for an explanation of backlog values.
60- #[ unstable( feature = "bind_with_backlog" , issue = "94406" ) ]
61- pub const DEFAULT_BACKLOG : usize = 128 ;
57+ /// Default backlog for `bind` and `bind_addr`.
58+ const DEFAULT_BACKLOG : usize = 128 ;
6259
6360 /// Creates a new `UnixListener` bound to the specified socket.
6461 ///
65- /// The listener will have a backlog given by
66- /// [`UnixListener::DEFAULT_BACKLOG`]. See the documentation for
62+ /// The listener will have a backlog of 128. See the documentation for
6763 /// [`UnixListener::bind_with_backlog`] for further information.
6864 ///
6965 /// # Examples
@@ -87,10 +83,10 @@ impl UnixListener {
8783 /// Creates a new `UnixListener` bound to the specified socket.
8884 ///
8985 /// The given backlog specifies the maximum number of outstanding
90- /// connections that will be buffered in the OS waiting to be accepted by
91- /// [`UnixListener::accept`]. The backlog argument overrides the default
92- /// specified by [`UnixListener::DEFAULT_BACKLOG`] ; that default is
93- /// reasonable for most use cases.
86+ /// connections that will be buffered in the OS waiting to be accepted
87+ /// by [`UnixListener::accept`]. The backlog argument overrides the
88+ /// default backlog of 128 ; that default is reasonable for most use
89+ /// cases.
9490 ///
9591 /// This function is otherwise [`UnixListener::bind`]: see that
9692 /// documentation for full details of operation.
@@ -133,6 +129,9 @@ impl UnixListener {
133129
134130 /// Creates a new `UnixListener` bound to the specified [`socket address`].
135131 ///
132+ /// The listener will have a backlog of 128. See the documentation for
133+ /// [`UnixListener::bind_addr_with_backlog`] for further information.
134+ ///
136135 /// [`socket address`]: crate::os::unix::net::SocketAddr
137136 ///
138137 /// # Examples
@@ -163,10 +162,9 @@ impl UnixListener {
163162 /// Creates a new `UnixListener` bound to the specified [`socket address`].
164163 ///
165164 /// The given backlog specifies the maximum number of outstanding
166- /// connections that will be buffered in the OS waiting to be accepted by
167- /// [`UnixListener::accept`]. The backlog argument overrides the default
168- /// specified by [`UnixListener::DEFAULT_BACKLOG`]; that default is
169- /// reasonable for most use cases.
165+ /// connections that will be buffered in the OS waiting to be accepted
166+ /// by [`UnixListener::accept`]. The backlog argument overrides the
167+ /// default of 128; that default is reasonable for most use cases.
170168 ///
171169 /// This function is otherwise [`UnixListener::bind_addr`]: see that
172170 /// documentation for full details of operation.
0 commit comments