1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-18 17:24:03 +03:00

log handshake status on failure

Reviewed By: kvtsoy

Differential Revision: D72980391

fbshipit-source-id: cdf83fba3480f9d556b62988051307e4eb4bcef9
This commit is contained in:
Paul Farcasanu 2025-04-14 20:42:36 -07:00 committed by Facebook GitHub Bot
parent 83c618d7d4
commit 9213804210
3 changed files with 9 additions and 0 deletions

View File

@ -2027,6 +2027,10 @@ bool QuicClientTransportLite::canRead() const {
return socket_ && !socket_->isReadPaused();
}
std::optional<int32_t> QuicClientTransportLite::getHandshakeStatus() const {
return clientConn_->clientHandshakeLayer->getHandshakeStatus();
}
const std::shared_ptr<const folly::AsyncTransportCertificate>
QuicClientTransportLite::getPeerCertificate() const {
const auto clientHandshakeLayer = clientConn_->clientHandshakeLayer;

View File

@ -242,6 +242,7 @@ class QuicClientTransportLite
uint64_t getPtoCount() const;
uint64_t getPacketsSentCount() const;
bool canRead() const;
std::optional<int32_t> getHandshakeStatus() const;
const std::shared_ptr<const folly::AsyncTransportCertificate>
getPeerCertificate() const override;

View File

@ -118,6 +118,10 @@ class ClientHandshake : public Handshake {
return 0;
}
virtual std::optional<int32_t> getHandshakeStatus() const {
return std::nullopt;
}
virtual const std::shared_ptr<const folly::AsyncTransportCertificate>
getPeerCertificate() const = 0;