mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
try
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user