mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-04-18 17:24:03 +03:00
log buffer sizes
Reviewed By: kvtsoy Differential Revision: D72982170 fbshipit-source-id: 3fab297f852463e80f4df397a7bfb5ea01ed25ba
This commit is contained in:
parent
9213804210
commit
2a20187408
@ -2031,6 +2031,18 @@ std::optional<int32_t> QuicClientTransportLite::getHandshakeStatus() const {
|
||||
return clientConn_->clientHandshakeLayer->getHandshakeStatus();
|
||||
}
|
||||
|
||||
size_t QuicClientTransportLite::getInitialReadBufferSize() const {
|
||||
return clientConn_->clientHandshakeLayer->getInitialReadBufferSize();
|
||||
}
|
||||
|
||||
size_t QuicClientTransportLite::getHandshakeReadBufferSize() const {
|
||||
return clientConn_->clientHandshakeLayer->getHandshakeReadBufferSize();
|
||||
}
|
||||
|
||||
size_t QuicClientTransportLite::getAppDataReadBufferSize() const {
|
||||
return clientConn_->clientHandshakeLayer->getAppDataReadBufferSize();
|
||||
}
|
||||
|
||||
const std::shared_ptr<const folly::AsyncTransportCertificate>
|
||||
QuicClientTransportLite::getPeerCertificate() const {
|
||||
const auto clientHandshakeLayer = clientConn_->clientHandshakeLayer;
|
||||
|
@ -243,6 +243,9 @@ class QuicClientTransportLite
|
||||
uint64_t getPacketsSentCount() const;
|
||||
bool canRead() const;
|
||||
std::optional<int32_t> getHandshakeStatus() const;
|
||||
size_t getInitialReadBufferSize() const;
|
||||
size_t getHandshakeReadBufferSize() const;
|
||||
size_t getAppDataReadBufferSize() const;
|
||||
|
||||
const std::shared_ptr<const folly::AsyncTransportCertificate>
|
||||
getPeerCertificate() const override;
|
||||
|
@ -133,6 +133,18 @@ Optional<bool> ClientHandshake::getCanResendZeroRtt() const {
|
||||
return canResendZeroRtt_;
|
||||
}
|
||||
|
||||
size_t ClientHandshake::getInitialReadBufferSize() const {
|
||||
return initialReadBuf_.chainLength();
|
||||
}
|
||||
|
||||
size_t ClientHandshake::getHandshakeReadBufferSize() const {
|
||||
return handshakeReadBuf_.chainLength();
|
||||
}
|
||||
|
||||
size_t ClientHandshake::getAppDataReadBufferSize() const {
|
||||
return appDataReadBuf_.chainLength();
|
||||
}
|
||||
|
||||
void ClientHandshake::computeCiphers(CipherKind kind, folly::ByteRange secret) {
|
||||
std::unique_ptr<Aead> aead = buildAead(kind, secret);
|
||||
std::unique_ptr<PacketNumberCipher> packetNumberCipher =
|
||||
|
@ -122,6 +122,10 @@ class ClientHandshake : public Handshake {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
size_t getInitialReadBufferSize() const;
|
||||
size_t getHandshakeReadBufferSize() const;
|
||||
size_t getAppDataReadBufferSize() const;
|
||||
|
||||
virtual const std::shared_ptr<const folly::AsyncTransportCertificate>
|
||||
getPeerCertificate() const = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user