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

log handshake waiting for data

Reviewed By: lnicco

Differential Revision: D72988762

fbshipit-source-id: 884d75450a00e76f5e3b3ce47e7b1bfaf01aadad
This commit is contained in:
Paul Farcasanu 2025-04-15 09:23:35 -07:00 committed by Facebook GitHub Bot
parent fac3017e1c
commit 86ba5bc943
4 changed files with 11 additions and 0 deletions

View File

@ -2047,6 +2047,10 @@ EncryptionLevel QuicClientTransportLite::getReadEncryptionLevel() const {
return clientConn_->clientHandshakeLayer->getReadRecordLayerEncryptionLevel();
}
bool QuicClientTransportLite::waitingForHandshakeData() const {
return clientConn_->clientHandshakeLayer->waitingForData();
}
const std::shared_ptr<const folly::AsyncTransportCertificate>
QuicClientTransportLite::getPeerCertificate() const {
const auto clientHandshakeLayer = clientConn_->clientHandshakeLayer;

View File

@ -247,6 +247,7 @@ class QuicClientTransportLite
size_t getHandshakeReadBufferSize() const;
size_t getAppDataReadBufferSize() const;
EncryptionLevel getReadEncryptionLevel() const;
bool waitingForHandshakeData() const;
const std::shared_ptr<const folly::AsyncTransportCertificate>
getPeerCertificate() const override;

View File

@ -143,6 +143,10 @@ size_t ClientHandshake::getAppDataReadBufferSize() const {
return appDataReadBuf_.chainLength();
}
bool ClientHandshake::waitingForData() const {
return waitForData_;
}
void ClientHandshake::computeCiphers(CipherKind kind, folly::ByteRange secret) {
std::unique_ptr<Aead> aead = buildAead(kind, secret);
std::unique_ptr<PacketNumberCipher> packetNumberCipher =

View File

@ -126,6 +126,8 @@ class ClientHandshake : public Handshake {
virtual EncryptionLevel getReadRecordLayerEncryptionLevel() = 0;
bool waitingForData() const;
virtual const std::shared_ptr<const folly::AsyncTransportCertificate>
getPeerCertificate() const = 0;