From deb4c2850e6bc8055bdbce90176fc5dc962844d7 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Thu, 30 Nov 2023 10:39:38 +0900 Subject: [PATCH] wip: set_reuse_addr for client --- rpxy-lib/src/forwarder/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rpxy-lib/src/forwarder/client.rs b/rpxy-lib/src/forwarder/client.rs index aa89749..c587be9 100644 --- a/rpxy-lib/src/forwarder/client.rs +++ b/rpxy-lib/src/forwarder/client.rs @@ -86,6 +86,7 @@ where .map(|tls| { let mut http = HttpConnector::new(); http.enforce_http(false); + http.set_reuse_address(true); HttpsConnector::from((http, tls.into())) }) };