This commit replaces the vault.DefaultConfig
with a custom Config which mainly differs from
the default by using a custom http.Transport.
The vault.DefaultConfig uses a http.Transport
that can leak TCP connections. Since these connections use TCP keepalive they remain idle and don't get closed causing a small but constant memory growth that can cause KES to run OOM.
This commit replaces the
vault.DefaultConfig
with a customConfig
which mainly differs from the default by using a customhttp.Transport
.The
vault.DefaultConfig
uses ahttp.Transport
that can leak TCP connections. Since these connections use TCP keepalive they remain idle and don't get closed causing a small but constant memory growth that can cause KES to run OOM.