Skip to content

Commit

Permalink
remove unused TransportSettings shouldRecvBatch
Browse files Browse the repository at this point in the history
Summary: shouldRecvBatch is not used by the transport.

Reviewed By: lnicco

Differential Revision: D59535361

fbshipit-source-id: 4085f463ffeb044d75aedc0e64c47daa61c28b5c
  • Loading branch information
jbeshay authored and facebook-github-bot committed Jul 11, 2024
1 parent 5c4e0dd commit a321ca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion proxygen/httpclient/samples/httperf2/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static quic::TransportSettings createTransportSettings() {
transportSettings.batchingMode =
quic::getQuicBatchingMode(FLAGS_quic_batching_mode);
transportSettings.maxBatchSize = FLAGS_quic_batch_size;
transportSettings.shouldRecvBatch = true;
transportSettings.shouldUseRecvmmsgForBatchRecv = true;
transportSettings.maxRecvBatchSize = FLAGS_quic_recv_batch_size;
transportSettings.connectUDP = FLAGS_udp_connect;
transportSettings.shouldDrain = false;
Expand Down
6 changes: 1 addition & 5 deletions proxygen/httpserver/samples/hq/HQCommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ void initializeTransportSettings(HQToolParams& hqUberParams) {
kDefaultQuicTransportKnobId,
FLAGS_transport_knobs});
}
hqParams.transportSettings.shouldRecvBatch = true;
hqParams.transportSettings.maxRecvBatchSize = 32;
hqParams.transportSettings.shouldUseRecvmmsgForBatchRecv = true;
hqParams.transportSettings.advertisedInitialMaxStreamsBidi = 100;
Expand All @@ -304,10 +303,7 @@ void initializeTransportSettings(HQToolParams& hqUberParams) {
hqParams.transportSettings.ccaConfig.leaveHeadroomForCwndLimited = true;
}

if (FLAGS_read_ecn) {
hqParams.transportSettings.readEcnOnIngress = FLAGS_read_ecn;
hqParams.transportSettings.shouldRecvBatch = false;
}
hqParams.transportSettings.readEcnOnIngress = FLAGS_read_ecn;

hqParams.transportSettings.dscpValue = FLAGS_dscp;
} // initializeTransportSettings
Expand Down

0 comments on commit a321ca1

Please sign in to comment.