From fae494af6c63d5f4a00cff429d955d139d6882db Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 7 Feb 2020 11:09:23 -0800 Subject: [PATCH 01/16] quic: another round of test fixups --- doc/api/errors.md | 7 - doc/api/quic.md | 10 +- lib/internal/errors.js | 2 - lib/internal/quic/core.js | 62 +++++--- lib/internal/quic/util.js | 26 ++- test/parallel/test-quic-binding.js | 9 +- ...=> test-quic-errors-quicsocket-connect.js} | 22 ++- ... => test-quic-errors-quicsocket-create.js} | 0 .../test-quic-errors-quicsocket-listen.js | 148 ++++++++++++++++++ 9 files changed, 253 insertions(+), 33 deletions(-) rename test/parallel/{test-quic-client-connect-err.js => test-quic-errors-quicsocket-connect.js} (89%) rename test/parallel/{test-quic-createsocket-err.js => test-quic-errors-quicsocket-create.js} (100%) create mode 100644 test/parallel/test-quic-errors-quicsocket-listen.js diff --git a/doc/api/errors.md b/doc/api/errors.md index 17e9de0040..aa8711e423 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1703,13 +1703,6 @@ TBD TBD - -### `ERR_QUICSOCKET_CLOSING` - -> Stability: 1 - Experimental - -TBD - ### `ERR_QUICSOCKET_DESTROYED` diff --git a/doc/api/quic.md b/doc/api/quic.md index 4ea548e148..935d36811f 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1655,7 +1655,6 @@ added: REPLACEME `object.passphrase` if provided, or `options.passphrase` if it is not. * `activeConnectionIdLimit` {number} * `maxAckDelay` {number} - * `maxActiveConnectionIDLimit` {number} * `maxData` {number} * `maxPacketSize` {number} * `maxStreamsBidi` {number} @@ -1707,6 +1706,15 @@ added: REPLACEME A `BigInt` representing the length of time this `QuicSocket` has been listening for connections. +#### quicsocket.listening + + +* Type: {boolean} + +Set to `true` if the `QuicSocket` is listening for new connections. + #### quicsocket.packetsIgnored + +* Type: {boolean} + +Set to `true` if the `QuicSession` was closed due to an idle timeout. + #### quicsession.keyUpdateCount