MCPcopy Create free account
hub / github.com/XTLS/Go / serverResumedSession

Method serverResumedSession

handshake_client.go:677–682  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

675}
676
677func (hs *clientHandshakeState) serverResumedSession() bool {
678 // If the server responded with the same sessionId then it means the
679 // sessionTicket is being used to resume a TLS session.
680 return hs.session != nil && hs.hello.sessionId != nil &&
681 bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
682}
683
684func (hs *clientHandshakeState) processServerHello() (bool, error) {
685 c := hs.c

Callers 1

processServerHelloMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected