@@ -54,16 +54,12 @@ impl fmt::Debug for UnixListener {
54
54
}
55
55
56
56
impl 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 ;
62
59
63
60
/// Creates a new `UnixListener` bound to the specified socket.
64
61
///
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
67
63
/// [`UnixListener::bind_with_backlog`] for further information.
68
64
///
69
65
/// # Examples
@@ -87,10 +83,10 @@ impl UnixListener {
87
83
/// Creates a new `UnixListener` bound to the specified socket.
88
84
///
89
85
/// 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.
94
90
///
95
91
/// This function is otherwise [`UnixListener::bind`]: see that
96
92
/// documentation for full details of operation.
@@ -133,6 +129,9 @@ impl UnixListener {
133
129
134
130
/// Creates a new `UnixListener` bound to the specified [`socket address`].
135
131
///
132
+ /// The listener will have a backlog of 128. See the documentation for
133
+ /// [`UnixListener::bind_addr_with_backlog`] for further information.
134
+ ///
136
135
/// [`socket address`]: crate::os::unix::net::SocketAddr
137
136
///
138
137
/// # Examples
@@ -163,10 +162,9 @@ impl UnixListener {
163
162
/// Creates a new `UnixListener` bound to the specified [`socket address`].
164
163
///
165
164
/// 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.
170
168
///
171
169
/// This function is otherwise [`UnixListener::bind_addr`]: see that
172
170
/// documentation for full details of operation.
0 commit comments