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:
parent
83c618d7d4
commit
9213804210
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user