allow 0-RTT resumption if the server's stream limit was increased

This commit is contained in:
Marten Seemann 2021-03-10 14:16:18 +08:00
parent 3bce408c8d
commit 3588cddd43
4 changed files with 83 additions and 22 deletions

View file

@ -466,7 +466,7 @@ func (h *cryptoSetup) GetSessionTicket() ([]byte, error) {
func (h *cryptoSetup) accept0RTT(sessionTicketData []byte) bool {
var t sessionTicket
if err := t.Unmarshal(sessionTicketData); err != nil {
h.logger.Debugf("Unmarshaling transport parameters from session ticket failed: %s", err.Error())
h.logger.Debugf("Unmarshalling transport parameters from session ticket failed: %s", err.Error())
return false
}
valid := h.ourParams.ValidFor0RTT(t.Parameters)