]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: replace custom intern cache with weak cache
authorRoland Shoemaker <roland@golang.org>
Sat, 25 Jan 2025 18:28:02 +0000 (10:28 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 21 May 2025 17:31:41 +0000 (10:31 -0700)
commit360600b1d20bc4b421217435d921a2437be07893
tree3ffbf89283a1972985bae6323e623e9206c1330d
parente6dacf91ffb0a356aa692ab5c46411e2eef913f3
crypto/tls: replace custom intern cache with weak cache

Uses the new weak package to replace the existing custom intern cache
with a map of weak.Pointers instead. This simplifies the cache, and
means we don't need to store a slice of handles on the Conn anymore.

Change-Id: I5c2bf6ef35fac4255e140e184f4e48574b34174c
Reviewed-on: https://go-review.googlesource.com/c/go/+/644176
TryBot-Bypass: Roland Shoemaker <roland@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
src/crypto/tls/cache.go
src/crypto/tls/cache_test.go
src/crypto/tls/conn.go
src/crypto/tls/handshake_client.go
src/crypto/tls/handshake_client_tls13.go
src/crypto/tls/handshake_messages_test.go
src/crypto/tls/ticket.go