File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ pub enum Host {
98
98
/// can resolve to multiple IP addresses, and this limit is applied to each address. Defaults to no timeout.
99
99
/// * `tcp_user_timeout` - The time limit that transmitted data may remain unacknowledged before a connection is forcibly closed.
100
100
/// This is ignored for Unix domain socket connections. It is only supported on systems where TCP_USER_TIMEOUT is available
101
- /// and will default to the system default; on other systems, it has no effect.
101
+ /// and will default to the system default if omitted or set to 0 ; on other systems, it has no effect.
102
102
/// * `keepalives` - Controls the use of TCP keepalive. A value of 0 disables keepalive and nonzero integers enable it.
103
103
/// This option is ignored when connecting with Unix sockets. Defaults to on.
104
104
/// * `keepalives_idle` - The number of seconds of inactivity after which a keepalive message is sent to the server.
@@ -348,8 +348,8 @@ impl Config {
348
348
/// Sets the TCP user timeout.
349
349
///
350
350
/// This is ignored for Unix domain socket connections. It is only supported on systems where
351
- /// TCP_USER_TIMEOUT is available and will default to the system default; on other systems,
352
- /// it has no effect.
351
+ /// TCP_USER_TIMEOUT is available and will default to the system default if omitted or set to 0;
352
+ /// on other systems, it has no effect.
353
353
pub fn tcp_user_timeout ( & mut self , tcp_user_timeout : Duration ) -> & mut Config {
354
354
self . tcp_user_timeout = Some ( tcp_user_timeout) ;
355
355
self
You can’t perform that action at this time.
0 commit comments