@@ -287,13 +287,11 @@ impl ClientBuilder {
287287 connection_verbose : false ,
288288 pool_idle_timeout : Some ( Duration :: from_secs ( 90 ) ) ,
289289 pool_max_idle_per_host : usize:: MAX ,
290- // TODO: Re-enable default duration once hyper's HttpConnector is fixed
291- // to no longer error when an option fails.
292- tcp_keepalive : None , //Some(Duration::from_secs(60)),
293- tcp_keepalive_interval : None ,
294- tcp_keepalive_retries : None ,
290+ tcp_keepalive : Some ( Duration :: from_secs ( 15 ) ) ,
291+ tcp_keepalive_interval : Some ( Duration :: from_secs ( 15 ) ) ,
292+ tcp_keepalive_retries : Some ( 3 ) ,
295293 #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
296- tcp_user_timeout : None ,
294+ tcp_user_timeout : Some ( Duration :: from_secs ( 30 ) ) ,
297295 proxies : Vec :: new ( ) ,
298296 auto_sys_proxy : true ,
299297 redirect_policy : redirect:: Policy :: default ( ) ,
@@ -1702,7 +1700,7 @@ impl ClientBuilder {
17021700 /// This option controls how long transmitted data may remain unacknowledged before
17031701 /// the connection is force-closed.
17041702 ///
1705- /// The current default is `None` ( option disabled) .
1703+ /// If `None`, the option will not be set .
17061704 #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
17071705 pub fn tcp_user_timeout < D > ( mut self , val : D ) -> ClientBuilder
17081706 where
0 commit comments