@@ -1919,7 +1919,7 @@ impl SenderBuilder {
1919
1919
}
1920
1920
1921
1921
/// 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.
1923
1923
/// The default is 15 seconds.
1924
1924
pub fn auth_timeout ( mut self , value : Duration ) -> Result < Self > {
1925
1925
self . auth_timeout . set_specified ( "auth_timeout" , value) ?;
@@ -2016,6 +2016,8 @@ impl SenderBuilder {
2016
2016
/// The timeout calculated from minimum throughput is adedd to the value of
2017
2017
/// [`request_timeout`](SenderBuilder::request_timeout) to get the total timeout
2018
2018
/// 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`.
2019
2021
pub fn request_min_throughput ( mut self , value : u64 ) -> Result < Self > {
2020
2022
if let Some ( http) = & mut self . http {
2021
2023
http. request_min_throughput
@@ -2275,7 +2277,8 @@ impl SenderBuilder {
2275
2277
) ) ;
2276
2278
}
2277
2279
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 ( ) ;
2279
2282
let agent_builder = ureq:: AgentBuilder :: new ( )
2280
2283
. user_agent ( user_agent)
2281
2284
. no_delay ( true ) ;
@@ -2307,6 +2310,8 @@ impl SenderBuilder {
2307
2310
}
2308
2311
None => None ,
2309
2312
} ;
2313
+ let agent_builder =
2314
+ agent_builder. timeout_connect ( * http_config. request_timeout . deref ( ) ) ;
2310
2315
let agent = agent_builder. build ( ) ;
2311
2316
let proto = self . protocol . schema ( ) ;
2312
2317
let url = format ! (
0 commit comments