@@ -1919,7 +1919,7 @@ impl SenderBuilder {
19191919 }
19201920
19211921 /// Configure how long to wait for messages from the QuestDB server during
1922- /// the TLS handshake and authentication process.
1922+ /// the TLS handshake and authentication process. This only applies to TCP.
19231923 /// The default is 15 seconds.
19241924 pub fn auth_timeout ( mut self , value : Duration ) -> Result < Self > {
19251925 self . auth_timeout . set_specified ( "auth_timeout" , value) ?;
@@ -2016,6 +2016,8 @@ impl SenderBuilder {
20162016 /// The timeout calculated from minimum throughput is adedd to the value of
20172017 /// [`request_timeout`](SenderBuilder::request_timeout) to get the total timeout
20182018 /// value.
2019+ /// A value of 0 disables this feature, so it's similar to setting "infinite"
2020+ /// minimum throughput. The total timeout will then be equal to `request_timeout`.
20192021 pub fn request_min_throughput ( mut self , value : u64 ) -> Result < Self > {
20202022 if let Some ( http) = & mut self . http {
20212023 http. request_min_throughput
@@ -2275,7 +2277,8 @@ impl SenderBuilder {
22752277 ) ) ;
22762278 }
22772279
2278- let user_agent = self . http . as_ref ( ) . unwrap ( ) . user_agent . as_str ( ) ;
2280+ let http_config = self . http . as_ref ( ) . unwrap ( ) ;
2281+ let user_agent = http_config. user_agent . as_str ( ) ;
22792282 let agent_builder = ureq:: AgentBuilder :: new ( )
22802283 . user_agent ( user_agent)
22812284 . no_delay ( true ) ;
@@ -2307,6 +2310,8 @@ impl SenderBuilder {
23072310 }
23082311 None => None ,
23092312 } ;
2313+ let agent_builder =
2314+ agent_builder. timeout_connect ( * http_config. request_timeout . deref ( ) ) ;
23102315 let agent = agent_builder. build ( ) ;
23112316 let proto = self . protocol . schema ( ) ;
23122317 let url = format ! (
0 commit comments