Skip to content

Commit 605d0d7

Browse files
afrindfacebook-github-bot
authored andcommitted
Configure supported QUIC versions in HQConnector
Summary: As in title Reviewed By: mjoras Differential Revision: D51504726 fbshipit-source-id: 5e0b6787ebf8dcdf23b67a657ad6e209b4606c93
1 parent 293687a commit 605d0d7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

proxygen/lib/http/HQConnector.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ void HQConnector::connect(
8383
// Always use connected UDP sockets
8484
transportSettings_.connectUDP = true;
8585
quicClient->setTransportSettings(transportSettings_);
86+
if (!quicVersions_.empty()) {
87+
quicClient->setSupportedVersions(quicVersions_);
88+
}
8689
quicClient->setQLogger(std::move(qLogger));
8790
quicClient->setLoopDetectorCallback(std::move(quicLoopDetectorCallback));
8891
quicClient->setSocketOptions(socketOptions);

proxygen/lib/http/HQConnector.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ class HQConnector : public HQSession::ConnectCallback {
4949
}
5050

5151
void setTransportSettings(quic::TransportSettings transportSettings);
52+
void setSupportedQuicVersions(
53+
const std::vector<quic::QuicVersion>& versions) {
54+
quicVersions_ = versions;
55+
}
5256
void setH3Settings(SettingsList settings) {
5357
h3Settings_ = std::move(settings);
5458
}
@@ -88,6 +92,7 @@ class HQConnector : public HQSession::ConnectCallback {
8892
TimePoint connectStart_;
8993
HQUpstreamSession* session_{nullptr};
9094
quic::TransportSettings transportSettings_;
95+
std::vector<quic::QuicVersion> quicVersions_;
9196
folly::Optional<SettingsList> h3Settings_;
9297
std::shared_ptr<quic::QuicPskCache> quicPskCache_;
9398
bool useConnectionEndWithErrorCallback_{false};

0 commit comments

Comments
 (0)