diff --git a/lib/internal/quic/core.js b/lib/internal/quic/core.js index bda9fa36b5..6f566af4ca 100644 --- a/lib/internal/quic/core.js +++ b/lib/internal/quic/core.js @@ -150,6 +150,8 @@ const { IDX_QUIC_SESSION_STATS_STREAMS_IN_COUNT, IDX_QUIC_SESSION_STATS_STREAMS_OUT_COUNT, IDX_QUIC_SESSION_STATS_KEYUPDATE_COUNT, + IDX_QUIC_SESSION_STATS_LOSS_RETRANSMIT_COUNT, + IDX_QUIC_SESSION_STATS_ACK_DELAY_RETRANSMIT_COUNT, IDX_QUIC_SESSION_STATS_MAX_BYTES_IN_FLIGHT, ERR_INVALID_REMOTE_TRANSPORT_PARAMS, ERR_INVALID_TLS_SESSION_TICKET, @@ -1864,6 +1866,16 @@ class QuicSession extends EventEmitter { return stats[IDX_QUIC_SESSION_STATS_MAX_BYTES_IN_FLIGHT]; } + get lossRetransmitCount() { + const stats = this.#stats || this[kHandle].stats; + return stats[IDX_QUIC_SESSION_STATS_LOSS_RETRANSMIT_COUNT]; + } + + get ackDelayRetransmitCount() { + const stats = this.#stats || this[kHandle].stats; + return stats[IDX_QUIC_SESSION_STATS_ACK_DELAY_RETRANSMIT_COUNT]; + } + get peerInitiatedStreamCount() { const stats = this.#stats || this[kHandle].stats; return stats[IDX_QUIC_SESSION_STATS_STREAMS_IN_COUNT];