Skip to content

Commit 2136700

Browse files
deadalnixfacebook-github-bot
authored andcommitted
Use a factory to create ClientHandshake (#59)
Summary: This will allow to be able to create different kind of handshake going forward. Pull Request resolved: facebook/mvfst#59 Reviewed By: siyengar Differential Revision: D18088574 Pulled By: mjoras fbshipit-source-id: 0732bb63a9e243fef77cdaf4f76e711fcb09ecdc
1 parent e81bb68 commit 2136700

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

proxygen/httpserver/samples/hq/HQClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void HQClient::initializeQuicClient() {
159159

160160
client->setPacingTimer(pacingTimer_);
161161
client->setHostname(params_.host);
162-
client->setFizzClientContext(createFizzClientContext(params_));
162+
client->setFizzClientQuicHandshakeContext(createFizzClientContext(params_));
163163
// This is only for testing, this should not be use in prod
164164
client->setCertificateVerifier(
165165
std::make_unique<

proxygen/lib/http/HQConnector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void HQConnector::connect(
5959
auto sock = std::make_unique<folly::AsyncUDPSocket>(eventBase);
6060
auto quicClient =
6161
quic::QuicClientTransport::newClient(eventBase, std::move(sock));
62-
quicClient->setFizzClientContext(fizzContext);
62+
quicClient->setFizzClientQuicHandshakeContext(fizzContext);
6363
quicClient->setCertificateVerifier(std::move(verifier));
6464
quicClient->setHostname(sni.value_or(connectAddr.getAddressStr()));
6565
quicClient->addNewPeerAddress(connectAddr);

0 commit comments

Comments
 (0)