1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-01 01:44:22 +03:00

Add number of ack frames sent counter for connection

Reviewed By: mjoras

Differential Revision: D62206780

fbshipit-source-id: 60bf94971a31335469a56efcb0a97dcb40ec15c0
This commit is contained in:
Konstantin Tsoy
2024-09-10 11:33:55 -07:00
committed by Facebook GitHub Bot
parent 4df319dee3
commit bc689e6f98
4 changed files with 9 additions and 0 deletions

View File

@ -709,6 +709,7 @@ void updateConnection(
<< " sent packet with largestAcked="
<< largestAckedPacketWritten << " packetNum=" << packetNum
<< " " << conn;
++conn.numAckFramesSent;
updateAckSendStateOnSentPacketWithAcks(
conn,
getAckState(conn, packetNumberSpace),

View File

@ -1861,4 +1861,8 @@ void QuicClientTransport::RecvmmsgStorage::resize(size_t numPackets) {
}
}
uint64_t QuicClientTransport::getNumAckFramesSent() const {
return conn_->numAckFramesSent;
}
} // namespace quic

View File

@ -216,6 +216,8 @@ class QuicClientTransport
Optional<std::vector<TransportParameter>> getPeerTransportParams()
const override;
uint64_t getNumAckFramesSent() const;
class HappyEyeballsConnAttemptDelayTimeout : public QuicTimerCallback {
public:
explicit HappyEyeballsConnAttemptDelayTimeout(

View File

@ -492,6 +492,8 @@ struct QuicConnectionStateBase : public folly::DelayedDestruction {
// This contains the ack and packet number related states for all three
// packet number spaces.
AckStates ackStates;
// Number of ack frames sent on connection across all packet number spaces.
uint64_t numAckFramesSent{0};
struct ConnectionFlowControlState {
// The size of the connection flow control window.