HttpsConnector: make keepalive configurable
it's the only PBS-specific part in there, so let's make it product-agnostic before moving it off to proxmox-http. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
5b43cc4487
commit
3ed7e87538
@ -26,6 +26,7 @@ use crate::tools::{
|
||||
self,
|
||||
BroadcastFuture,
|
||||
DEFAULT_ENCODE_SET,
|
||||
PROXMOX_BACKUP_TCP_KEEPALIVE_TIME,
|
||||
http::{
|
||||
build_authority,
|
||||
HttpsConnector,
|
||||
@ -343,7 +344,7 @@ impl HttpClient {
|
||||
httpc.enforce_http(false); // we want https...
|
||||
|
||||
httpc.set_connect_timeout(Some(std::time::Duration::new(10, 0)));
|
||||
let https = HttpsConnector::with_connector(httpc, ssl_connector_builder.build());
|
||||
let https = HttpsConnector::with_connector(httpc, ssl_connector_builder.build(), PROXMOX_BACKUP_TCP_KEEPALIVE_TIME);
|
||||
|
||||
let client = Client::builder()
|
||||
//.http2_initial_stream_window_size( (1 << 31) - 2)
|
||||
|
Reference in New Issue
Block a user