Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions u_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ func (uconn *UConn) uLoadSession() error {
return err
}
if session.version == VersionTLS12 {
// [uTLS] Without a session ticket extension there is nowhere to
// put the TLS 1.2 ticket. initSessionTicketExt below would skip
// initialization and leave the controller in NoSession, and the
// following setSessionTicketToUConn would then fail its state
// assertion. Skip resumption instead.
if uconn.sessionController.sessionTicketExt == nil {
return nil
}
// We use the session ticket extension for tls 1.2 session resumption
uconn.sessionController.initSessionTicketExt(session, hello.sessionTicket)
uconn.sessionController.setSessionTicketToUConn()
Expand Down
Loading