Skip to content

Commit

Permalink
Key update support: Add hq cli flags to enable initiating key updates…
Browse files Browse the repository at this point in the history
… [6/x]

Summary:
Adds two new flags to hq cli for both client and server:
- initiate_key_updates
- key_update_interval

Reviewed By: mjoras

Differential Revision: D53109626

fbshipit-source-id: f3c1317a4757ae0e313174f45967f36c549a6fdf
  • Loading branch information
jbeshay authored and facebook-github-bot committed Feb 1, 2024
1 parent 4a80840 commit 0380f4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions proxygen/httpserver/samples/hq/HQCommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ DEFINE_uint32(
max_ack_receive_timestamps_to_send,
quic::kMaxReceivedPktsTimestampsStored,
"Controls how many packet receieve timestamps the peer should send");
DEFINE_bool(initiate_key_updates,
false,
"Whether to initiate periodic key updates");
DEFINE_uint32(key_update_interval,
quic::kDefaultKeyUpdatePacketCountInterval,
"Number of packets to be sent before initiating a key update (if "
"initiate_key_updates is true)");

namespace quic::samples {

Expand Down Expand Up @@ -270,6 +277,10 @@ void initializeTransportSettings(HQToolParams& hqUberParams) {
.receiveTimestampsExponent = kDefaultReceiveTimestampsExponent});
}
hqParams.transportSettings.datagramConfig.enabled = true;

hqParams.transportSettings.initiateKeyUpdate = FLAGS_initiate_key_updates;
hqParams.transportSettings.keyUpdatePacketCountInterval =
FLAGS_key_update_interval;
} // initializeTransportSettings

void initializeHttpServerSettings(HQToolServerParams& hqParams) {
Expand Down

0 comments on commit 0380f4a

Please sign in to comment.