Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/tls: GetCertificate called on resumed sessions #25352
GetCertificate is called just before checking the client session ticket. If the ticket is valid and the session is resumed, that call is probably pointless.
Off the top of my head, I can't remember why the server would need to know its own certificate in a resumed session, but there might be something I'm forgetting around renegotiation. Look into it, and if possible move the GetCertificate call after checkForResumption.