From b06fe33de1bba9c8f0fcf52ea5d8c54035159dfd Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 22 Jul 2020 09:16:13 -0700 Subject: [PATCH] quic: use async _construct for QuicStream PR-URL: https://github.com/nodejs/node/pull/34351 Reviewed-By: Robert Nagy Reviewed-By: Anna Henningsen --- doc/api/quic.md | 5 +- lib/internal/quic/core.js | 117 ++++++++++++++++++++++++---------- src/quic/node_quic_buffer.cc | 1 + src/quic/node_quic_session.cc | 2 +- src/stream_base.cc | 1 + 5 files changed, 89 insertions(+), 37 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index f23078dbc588bd..64b5f7ff087437 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1047,8 +1047,9 @@ added: REPLACEME Returns a `Promise` that resolves a new `QuicStream`. -The `Promise` will be rejected if the `QuicSession` has been destroyed or is in -the process of a graceful shutdown. +The `Promise` will be rejected if the `QuicSession` has been destroyed, is in +the process of a graceful shutdown, or the `QuicSession` is otherwise blocked +from opening a new stream. #### `quicsession.ping()`