mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +03:00
Back out "Implement handshake done and cipher dropping."
Summary: This caused an increase in client errors. Reviewed By: yangchi, lnicco Differential Revision: D20186386 fbshipit-source-id: 737122a94c97498efba61292a6c292cfe482925c
This commit is contained in:
committed by
Facebook Github Bot
parent
8a386d9549
commit
61cd1a7289
@@ -125,11 +125,14 @@ CodecResult QuicReadCodec::parseLongHeaderPacket(
|
||||
auto protectionType = longHeader.getProtectionType();
|
||||
switch (protectionType) {
|
||||
case ProtectionType::Initial:
|
||||
if (!initialHeaderCipher_) {
|
||||
VLOG(4) << nodeToString(nodeType_)
|
||||
<< " dropping initial packet after initial keys dropped"
|
||||
<< connIdToHex();
|
||||
return CodecResult(Nothing());
|
||||
if (handshakeDoneTime_) {
|
||||
auto timeBetween = Clock::now() - *handshakeDoneTime_;
|
||||
if (timeBetween > kTimeToRetainZeroRttKeys) {
|
||||
VLOG(4) << nodeToString(nodeType_)
|
||||
<< " dropping initial packet for exceeding key timeout"
|
||||
<< connIdToHex();
|
||||
return CodecResult(Nothing());
|
||||
}
|
||||
}
|
||||
headerCipher = initialHeaderCipher_.get();
|
||||
cipher = initialReadCipher_.get();
|
||||
@@ -140,7 +143,6 @@ CodecResult QuicReadCodec::parseLongHeaderPacket(
|
||||
break;
|
||||
case ProtectionType::ZeroRtt:
|
||||
if (handshakeDoneTime_) {
|
||||
// TODO actually drop the 0-rtt keys in addition to dropping packets.
|
||||
auto timeBetween = Clock::now() - *handshakeDoneTime_;
|
||||
if (timeBetween > kTimeToRetainZeroRttKeys) {
|
||||
VLOG(4) << nodeToString(nodeType_)
|
||||
|
||||
Reference in New Issue
Block a user