diff options
author | James M Snell <jasnell@gmail.com> | 2020-07-09 23:40:23 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-07-16 03:16:39 +0300 |
commit | b80108c033325c00dabbde945522e7f3535a3977 (patch) | |
tree | ead72ab08009cf1eb85620d33ad90d829433b8b7 /doc/api/quic.md | |
parent | 81c01bbdbaa414c0bbceec6deaf0046cdcaaa95d (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.md | 5 |
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 |