Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2020-07-09 23:40:23 +0300
committerJames M Snell <jasnell@gmail.com>2020-07-16 03:16:39 +0300
commitb80108c033325c00dabbde945522e7f3535a3977 (patch)
treeead72ab08009cf1eb85620d33ad90d829433b8b7 /doc/api/quic.md
parent81c01bbdbaa414c0bbceec6deaf0046cdcaaa95d (diff)
quic: restrict addEndpoint to before QuicSocket bind
Restricting this to pre-bind keeps things simple PR-URL: https://github.com/nodejs/node/pull/34283 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc/api/quic.md')
-rw-r--r--doc/api/quic.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/quic.md b/doc/api/quic.md
index b21d4326425..d16b0a853e1 100644
--- a/doc/api/quic.md
+++ b/doc/api/quic.md
@@ -1458,7 +1458,10 @@ added: REPLACEME
**Default**: `'udp4'`.
* Returns: {QuicEndpoint}
-Creates and adds a new `QuicEndpoint` to the `QuicSocket` instance.
+Creates and adds a new `QuicEndpoint` to the `QuicSocket` instance. An
+error will be thrown if `quicsock.addEndpoint()` is called either after
+the `QuicSocket` has already started binding to the local ports or after
+the `QuicSocket` has been destroyed.
#### quicsocket.bound
<!-- YAML