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:
parent
fac3017e1c
commit
86ba5bc943
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 =
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user