From 076a86d3da5b78aaa54ad96689680d8cb7fdfeca Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 10 Jul 2020 13:48:45 -0700 Subject: [PATCH] quic: eliminate "ready"/"not ready" states for QuicSession QuicClientSession and QuicServerSessions are now always immediately ready for use when they are created, so no more need to track ready state. PR-URL: https://github.com/nodejs/node/pull/34283 Reviewed-By: Anna Henningsen --- doc/api/quic.md | 10 -- lib/internal/quic/core.js | 116 +++--------------- test/parallel/test-quic-quicsession-resume.js | 29 +++-- 3 files changed, 35 insertions(+), 120 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index cb3180e0cdf66a..671a4c681be3c1 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1269,16 +1269,6 @@ empty object when the key exchange is not ephemeral. The supported types are For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. -#### quicclientsession.ready - - -* Type: {boolean} - -Set to `true` if the `QuicClientSession` is ready for use. False if the -`QuicSocket` has not yet been bound. - #### quicclientsession.setSocket(socket])