From ecda97aadd0c5bee5e66a89d32e62860f4e56096 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 8 May 2018 05:54:06 -0700 Subject: [PATCH] update doc string --- src/client/connector.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/connector.rs b/src/client/connector.rs index d9fa46d15..dea00ea21 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -347,6 +347,7 @@ impl ClientConnector { /// Keep-alive period is the period between connection usage. If /// the delay between repeated usages of the same connection /// exceeds this period, the connection is closed. + /// Default keep-alive period is 15 seconds. pub fn conn_keep_alive(mut self, dur: Duration) -> Self { self.conn_keep_alive = dur; self @@ -356,6 +357,7 @@ impl ClientConnector { /// /// Connection lifetime is max lifetime of any opened connection /// until it is closed regardless of keep-alive period. + /// Default lifetime period is 75 seconds. pub fn conn_lifetime(mut self, dur: Duration) -> Self { self.conn_lifetime = dur; self