send the CONNECTION_CLOSE in all available encryption levels

This commit is contained in:
Marten Seemann
2020-02-22 13:02:10 +07:00
parent 75f14a267e
commit 2ea6a294a9
6 changed files with 268 additions and 122 deletions

View File

@@ -700,7 +700,7 @@ func (h *cryptoSetup) Get0RTTSealer() (LongHeaderSealer, error) {
defer h.mutex.Unlock()
if h.zeroRTTSealer == nil {
return nil, errors.New("CryptoSetup: 0-RTT sealer not available")
return nil, ErrKeysDropped
}
return h.zeroRTTSealer, nil
}