File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ void HQConnector::connect(
83
83
// Always use connected UDP sockets
84
84
transportSettings_.connectUDP = true ;
85
85
quicClient->setTransportSettings (transportSettings_);
86
+ if (!quicVersions_.empty ()) {
87
+ quicClient->setSupportedVersions (quicVersions_);
88
+ }
86
89
quicClient->setQLogger (std::move (qLogger));
87
90
quicClient->setLoopDetectorCallback (std::move (quicLoopDetectorCallback));
88
91
quicClient->setSocketOptions (socketOptions);
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ class HQConnector : public HQSession::ConnectCallback {
49
49
}
50
50
51
51
void setTransportSettings (quic::TransportSettings transportSettings);
52
+ void setSupportedQuicVersions (
53
+ const std::vector<quic::QuicVersion>& versions) {
54
+ quicVersions_ = versions;
55
+ }
52
56
void setH3Settings (SettingsList settings) {
53
57
h3Settings_ = std::move (settings);
54
58
}
@@ -88,6 +92,7 @@ class HQConnector : public HQSession::ConnectCallback {
88
92
TimePoint connectStart_;
89
93
HQUpstreamSession* session_{nullptr };
90
94
quic::TransportSettings transportSettings_;
95
+ std::vector<quic::QuicVersion> quicVersions_;
91
96
folly::Optional<SettingsList> h3Settings_;
92
97
std::shared_ptr<quic::QuicPskCache> quicPskCache_;
93
98
bool useConnectionEndWithErrorCallback_{false };
You can’t perform that action at this time.
0 commit comments