docs: mention sys default if 0
This commit is contained in:
parent
ee5a139028
commit
a9967c05ff
@ -98,7 +98,7 @@ pub enum Host {
|
|||||||
/// can resolve to multiple IP addresses, and this limit is applied to each address. Defaults to no timeout.
|
/// can resolve to multiple IP addresses, and this limit is applied to each address. Defaults to no timeout.
|
||||||
/// * `tcp_user_timeout` - The time limit that transmitted data may remain unacknowledged before a connection is forcibly closed.
|
/// * `tcp_user_timeout` - The time limit that transmitted data may remain unacknowledged before a connection is forcibly closed.
|
||||||
/// This is ignored for Unix domain socket connections. It is only supported on systems where TCP_USER_TIMEOUT is available
|
/// This is ignored for Unix domain socket connections. It is only supported on systems where TCP_USER_TIMEOUT is available
|
||||||
/// and will default to the system default; on other systems, it has no effect.
|
/// and will default to the system default if omitted or set to 0; on other systems, it has no effect.
|
||||||
/// * `keepalives` - Controls the use of TCP keepalive. A value of 0 disables keepalive and nonzero integers enable it.
|
/// * `keepalives` - Controls the use of TCP keepalive. A value of 0 disables keepalive and nonzero integers enable it.
|
||||||
/// This option is ignored when connecting with Unix sockets. Defaults to on.
|
/// This option is ignored when connecting with Unix sockets. Defaults to on.
|
||||||
/// * `keepalives_idle` - The number of seconds of inactivity after which a keepalive message is sent to the server.
|
/// * `keepalives_idle` - The number of seconds of inactivity after which a keepalive message is sent to the server.
|
||||||
@ -348,8 +348,8 @@ impl Config {
|
|||||||
/// Sets the TCP user timeout.
|
/// Sets the TCP user timeout.
|
||||||
///
|
///
|
||||||
/// This is ignored for Unix domain socket connections. It is only supported on systems where
|
/// This is ignored for Unix domain socket connections. It is only supported on systems where
|
||||||
/// TCP_USER_TIMEOUT is available and will default to the system default; on other systems,
|
/// TCP_USER_TIMEOUT is available and will default to the system default if omitted or set to 0;
|
||||||
/// it has no effect.
|
/// on other systems, it has no effect.
|
||||||
pub fn tcp_user_timeout(&mut self, tcp_user_timeout: Duration) -> &mut Config {
|
pub fn tcp_user_timeout(&mut self, tcp_user_timeout: Duration) -> &mut Config {
|
||||||
self.tcp_user_timeout = Some(tcp_user_timeout);
|
self.tcp_user_timeout = Some(tcp_user_timeout);
|
||||||
self
|
self
|
||||||
|
Loading…
Reference in New Issue
Block a user