From a41e830c200d1628bb491f3c9810dcc396b4549d Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 22 Jan 2020 12:11:58 -0800 Subject: [PATCH] quic: additional QuicStream tracking stats PR-URL: https://github.com/nodejs/quic/pull/294 Reviewed-By: Anna Henningsen --- doc/api/quic.md | 19 +++++++++++++++++++ lib/internal/quic/core.js | 12 ++++++++++++ src/quic/node_quic_stream-inl.h | 8 -------- src/quic/node_quic_stream.cc | 9 ++++----- src/quic/node_quic_stream.h | 12 ++++-------- 5 files changed, 39 insertions(+), 21 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index fafb11db23..0ad4786ce9 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1973,6 +1973,16 @@ added: REPLACEME The numeric identifier of the `QuicStream`. +#### quicstream.maxAcknowledgedOffset + + +* Type: {BigInt} + +A `BigInt` representing the highest acknowledged data offset received +for this `QuicStream`. + #### quicstream.maxExtendedOffset + +* Type: {BigInt} + +A `BigInt` representing the maximum received offset for this `QuicStream`. + #### quicstream.pending