Skip to content

Commit

Permalink
Expose PTO count and overall packets sent count for the client
Browse files Browse the repository at this point in the history
Summary: Expose PTO count and overall packets sent count for the client

Reviewed By: sharmafb

Differential Revision: D64006928

fbshipit-source-id: f28b29c175271683391375fb97bb43fef8598034
  • Loading branch information
kvtsoy authored and facebook-github-bot committed Oct 8, 2024
1 parent 0213283 commit 16ca1bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quic/client/QuicClientTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1891,4 +1891,12 @@ uint64_t QuicClientTransport::getEnobufsCount() const {
return conn_->enobufsCount;
}

uint64_t QuicClientTransport::getPtoCount() const {
return conn_->lossState.ptoCount;
}

uint64_t QuicClientTransport::getPacketsSentCount() const {
return conn_->lossState.totalPacketsSent;
}

} // namespace quic
3 changes: 3 additions & 0 deletions quic/client/QuicClientTransport.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ class QuicClientTransport

uint64_t getEnobufsCount() const;

uint64_t getPtoCount() const;
uint64_t getPacketsSentCount() const;

class HappyEyeballsConnAttemptDelayTimeout : public QuicTimerCallback {
public:
explicit HappyEyeballsConnAttemptDelayTimeout(
Expand Down

0 comments on commit 16ca1bc

Please sign in to comment.