Skip to content
Snippets Groups Projects
Commit a8e5be98 authored by Rohith's avatar Rohith
Browse files

- fully disabling keepalive connections

parent 00a9a690
No related branches found
No related tags found
No related merge requests found
...@@ -244,13 +244,13 @@ func (r *KeycloakProxy) initializeReverseProxy(upstream *url.URL) (reverseProxy, ...@@ -244,13 +244,13 @@ func (r *KeycloakProxy) initializeReverseProxy(upstream *url.URL) (reverseProxy,
proxy.Transport = &http.Transport{ proxy.Transport = &http.Transport{
//Proxy: http.ProxyFromEnvironment, //Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{ Dial: (&net.Dialer{
KeepAlive: 10 * time.Second, //KeepAlive: 10 * time.Second,
Timeout: 10 * time.Second, Timeout: 10 * time.Second,
}).Dial, }).Dial,
TLSClientConfig: &tls.Config{ TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, InsecureSkipVerify: true,
}, },
DisableKeepAlives: r.config.Keepalives, DisableKeepAlives: true,
} }
return proxy, nil return proxy, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment