Skip to content

Commit

Permalink
Remove temporary setting for rejecting quic key updates
Browse files Browse the repository at this point in the history
Summary: This setting is no longer needed.

Reviewed By: mjoras

Differential Revision: D57112554

fbshipit-source-id: 4720dd864f24ac21a775419522254195c5ea215f
  • Loading branch information
jbeshay authored and facebook-github-bot committed May 10, 2024
1 parent 54c2913 commit 8bfd2d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions quic/api/QuicTransportFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1946,10 +1946,6 @@ void updateOneRttWriteCipher(
void maybeHandleIncomingKeyUpdate(QuicConnectionStateBase& conn) {
if (conn.readCodec->getCurrentOneRttReadPhase() != conn.oneRttWritePhase) {
// Peer has initiated a key update.
if (conn.transportSettings.rejectIncomingKeyUpdates) {
throw QuicTransportException(
"key update attempt rejected", TransportErrorCode::CRYPTO_ERROR);
}
updateOneRttWriteCipher(
conn,
conn.handshakeLayer->getNextOneRttWriteCipher(),
Expand Down
5 changes: 1 addition & 4 deletions quic/state/TransportSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,7 @@ struct TransportSettings {
kFirstKeyUpdatePacketCount};
// How many packets to send before initiating periodic key updates
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.
bool useNewStreamBlockedCondition{false};
bool scheduleTimerForExcessWrites{false};
Expand Down

0 comments on commit 8bfd2d1

Please sign in to comment.