This commit is contained in:
Jarred Sumner
2025-05-18 04:27:56 -07:00
parent e274ee5460
commit 356bade569

View File

@@ -2456,10 +2456,10 @@ pub fn isKeepAlivePossible(this: *HTTPClient) bool {
if (comptime FeatureFlags.enable_keepalive) {
// TODO keepalive for unix sockets
if (this.unix_socket_path.length() > 0) return false;
// is not possible to reuse Proxy with TSL, so disable keepalive if url is tunneling HTTPS
if (this.http_proxy != null and this.url.isHTTPS()) {
return false;
}
// // is not possible to reuse Proxy with TSL, so disable keepalive if url is tunneling HTTPS
// if (this.http_proxy != null and this.url.isHTTPS()) {
// return false;
// }
//check state
if (this.state.flags.allow_keepalive and !this.flags.disable_keepalive) return true;