From d3ead9fb2cf3efec103970687c1e2740c5f0fe10 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 14 Jan 2020 20:43:05 -0800 Subject: [PATCH] quic: server busy count + more docs PR-URL: https://github.com/nodejs/quic/pull/286 Reviewed-By: Anna Henningsen --- doc/api/quic.md | 30 ++++++--- lib/internal/quic/core.js | 6 ++ src/quic/node_quic_socket.cc | 125 ++++++++++++++++++++++++++++++----- src/quic/node_quic_socket.h | 3 +- 4 files changed, 137 insertions(+), 27 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index adf09ae616..a9dd003074 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1301,7 +1301,7 @@ added: REPLACEME * Type: {BigInt} -A `BitInt` representing the length of time this `QuicSocket` has been bound +A `BigInt` representing the length of time this `QuicSocket` has been bound to a local port. #### quicsocket.bytesReceived @@ -1311,7 +1311,7 @@ added: REPLACEME * Type: {BigInt} -A `BitInt` representing the number of bytes received by this `QuicSocket`. +A `BigInt` representing the number of bytes received by this `QuicSocket`. #### quicsocket.bytesSent +#### quicsocket.serverBusyCount + + +* Type: {BigInt} + +A `BigInt` representing the number of `QuicSession` instances rejected +due to server busy status. + #### quicsocket.serverSessions