mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-30 14:43:05 +03:00
Remove temporary setting for rejecting quic key updates
Summary: This setting is no longer needed. Reviewed By: mjoras Differential Revision: D57112554 fbshipit-source-id: 4720dd864f24ac21a775419522254195c5ea215f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
54c2913526
commit
8bfd2d1d66
@ -1946,10 +1946,6 @@ void updateOneRttWriteCipher(
|
|||||||
void maybeHandleIncomingKeyUpdate(QuicConnectionStateBase& conn) {
|
void maybeHandleIncomingKeyUpdate(QuicConnectionStateBase& conn) {
|
||||||
if (conn.readCodec->getCurrentOneRttReadPhase() != conn.oneRttWritePhase) {
|
if (conn.readCodec->getCurrentOneRttReadPhase() != conn.oneRttWritePhase) {
|
||||||
// Peer has initiated a key update.
|
// Peer has initiated a key update.
|
||||||
if (conn.transportSettings.rejectIncomingKeyUpdates) {
|
|
||||||
throw QuicTransportException(
|
|
||||||
"key update attempt rejected", TransportErrorCode::CRYPTO_ERROR);
|
|
||||||
}
|
|
||||||
updateOneRttWriteCipher(
|
updateOneRttWriteCipher(
|
||||||
conn,
|
conn,
|
||||||
conn.handshakeLayer->getNextOneRttWriteCipher(),
|
conn.handshakeLayer->getNextOneRttWriteCipher(),
|
||||||
|
@ -361,10 +361,7 @@ struct TransportSettings {
|
|||||||
kFirstKeyUpdatePacketCount};
|
kFirstKeyUpdatePacketCount};
|
||||||
// How many packets to send before initiating periodic key updates
|
// How many packets to send before initiating periodic key updates
|
||||||
uint64_t keyUpdatePacketCountInterval{kDefaultKeyUpdatePacketCountInterval};
|
uint64_t keyUpdatePacketCountInterval{kDefaultKeyUpdatePacketCountInterval};
|
||||||
// Whether to terminate the connection when a peer initiates a key update.
|
|
||||||
// TODO: Remove this. This is a temporary measure to gradually roll out key
|
|
||||||
// update support.
|
|
||||||
bool rejectIncomingKeyUpdates{false};
|
|
||||||
// Temporary flag to test new stream blocked condition.
|
// Temporary flag to test new stream blocked condition.
|
||||||
bool useNewStreamBlockedCondition{false};
|
bool useNewStreamBlockedCondition{false};
|
||||||
bool scheduleTimerForExcessWrites{false};
|
bool scheduleTimerForExcessWrites{false};
|
||||||
|
Reference in New Issue
Block a user