mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-06 22:22:38 +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:
committed by
Facebook GitHub Bot
parent
4df319dee3
commit
bc689e6f98
@@ -709,6 +709,7 @@ void updateConnection(
|
|||||||
<< " sent packet with largestAcked="
|
<< " sent packet with largestAcked="
|
||||||
<< largestAckedPacketWritten << " packetNum=" << packetNum
|
<< largestAckedPacketWritten << " packetNum=" << packetNum
|
||||||
<< " " << conn;
|
<< " " << conn;
|
||||||
|
++conn.numAckFramesSent;
|
||||||
updateAckSendStateOnSentPacketWithAcks(
|
updateAckSendStateOnSentPacketWithAcks(
|
||||||
conn,
|
conn,
|
||||||
getAckState(conn, packetNumberSpace),
|
getAckState(conn, packetNumberSpace),
|
||||||
|
@@ -1861,4 +1861,8 @@ void QuicClientTransport::RecvmmsgStorage::resize(size_t numPackets) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t QuicClientTransport::getNumAckFramesSent() const {
|
||||||
|
return conn_->numAckFramesSent;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace quic
|
} // namespace quic
|
||||||
|
@@ -216,6 +216,8 @@ class QuicClientTransport
|
|||||||
Optional<std::vector<TransportParameter>> getPeerTransportParams()
|
Optional<std::vector<TransportParameter>> getPeerTransportParams()
|
||||||
const override;
|
const override;
|
||||||
|
|
||||||
|
uint64_t getNumAckFramesSent() const;
|
||||||
|
|
||||||
class HappyEyeballsConnAttemptDelayTimeout : public QuicTimerCallback {
|
class HappyEyeballsConnAttemptDelayTimeout : public QuicTimerCallback {
|
||||||
public:
|
public:
|
||||||
explicit HappyEyeballsConnAttemptDelayTimeout(
|
explicit HappyEyeballsConnAttemptDelayTimeout(
|
||||||
|
@@ -492,6 +492,8 @@ struct QuicConnectionStateBase : public folly::DelayedDestruction {
|
|||||||
// This contains the ack and packet number related states for all three
|
// This contains the ack and packet number related states for all three
|
||||||
// packet number spaces.
|
// packet number spaces.
|
||||||
AckStates ackStates;
|
AckStates ackStates;
|
||||||
|
// Number of ack frames sent on connection across all packet number spaces.
|
||||||
|
uint64_t numAckFramesSent{0};
|
||||||
|
|
||||||
struct ConnectionFlowControlState {
|
struct ConnectionFlowControlState {
|
||||||
// The size of the connection flow control window.
|
// The size of the connection flow control window.
|
||||||
|
Reference in New Issue
Block a user