Skip to content

Commit a9967c0

Browse files
committed
docs: mention sys default if 0
1 parent ee5a139 commit a9967c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tokio-postgres/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub enum Host {
9898
/// can resolve to multiple IP addresses, and this limit is applied to each address. Defaults to no timeout.
9999
/// * `tcp_user_timeout` - The time limit that transmitted data may remain unacknowledged before a connection is forcibly closed.
100100
/// 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.
102102
/// * `keepalives` - Controls the use of TCP keepalive. A value of 0 disables keepalive and nonzero integers enable it.
103103
/// This option is ignored when connecting with Unix sockets. Defaults to on.
104104
/// * `keepalives_idle` - The number of seconds of inactivity after which a keepalive message is sent to the server.
@@ -348,8 +348,8 @@ impl Config {
348348
/// Sets the TCP user timeout.
349349
///
350350
/// 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.
353353
pub fn tcp_user_timeout(&mut self, tcp_user_timeout: Duration) -> &mut Config {
354354
self.tcp_user_timeout = Some(tcp_user_timeout);
355355
self

0 commit comments

Comments
 (0)