Skip to content

Commit 0c9325e

Browse files
aglbradfitz
authored andcommitted
crypto/tls: document that only tickets are supported.
This change clarifies that only ticket-based resumption is supported by crypto/tls. It's not clear where to document this for a server, although perhaps it's obvious there because there's nowhere to plug in the storage that would be needed by SessionID-based resumption. Fixes #18607 Change-Id: Iaaed53e8d8f2f45c2f24c0683052df4be6340922 Reviewed-on: https://go-review.googlesource.com/36560 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 438818d commit 0c9325e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crypto/tls/common.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ type ClientSessionState struct {
206206
// ClientSessionCache is a cache of ClientSessionState objects that can be used
207207
// by a client to resume a TLS session with a given server. ClientSessionCache
208208
// implementations should expect to be called concurrently from different
209-
// goroutines.
209+
// goroutines. Only ticket-based resumption is supported, not SessionID-based
210+
// resumption.
210211
type ClientSessionCache interface {
211212
// Get searches for a ClientSessionState associated with the given key.
212213
// On return, ok is true if one was found.

0 commit comments

Comments
 (0)