diff options
| author | Roland Shoemaker <roland@golang.org> | 2022-08-29 09:40:50 -0700 |
|---|---|---|
| committer | Roland Shoemaker <roland@golang.org> | 2022-11-07 19:47:10 +0000 |
| commit | 72ce9ba9cb640f1a2184389d1dc146d731882328 (patch) | |
| tree | e7167cff2fab26124e2e42638ca42fce24b84b2c /src/runtime/stack.go | |
| parent | 601ad2e4570896d07df8ace7d2ab9100a57d301c (diff) | |
| download | go-72ce9ba9cb640f1a2184389d1dc146d731882328.tar.xz | |
crypto/tls: use certificate cache in client
In verifyServerCertificate parse certificates using the global
certificate cache.
This should signficiantly reduce memory usage in TLS clients which make
concurrent connections which reuse certificates (anywhere in the chain)
since there will only ever be one copy of the certificate at once.
Fixes #46035
Change-Id: Icf5153d0ea3c14a0bdc8b26c794f21153bf95f85
Reviewed-on: https://go-review.googlesource.com/c/go/+/426455
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions
