mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: deprecate Server.prototype._listen2 in node:net
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65593 Refs: https://github.com/nodejs/node/pull/63249 Refs: https://github.com/nodejs/node/pull/64794 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
This commit is contained in:
1 parent
d8ddf46d15
commit
616bd3fa26
1 file changed
+20
@@ -4612,6 +4612,25 @@ throwing an error. This behavior is inconsistent with `hash.digest()` and
|
||||
may lead to subtle bugs. Calling `hmac.digest()` on a finalized `Hmac` instance
|
||||
will throw an error in a future version.
|
||||
|
||||
<!-- md-lint skip-deprecation DEP0207 -->
|
||||
|
||||
### DEP0208: `Server.prototype._listen2`
|
||||
|
||||
<!-- YAML
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/64794
|
||||
description: Documentation-only.
|
||||
-->
|
||||
|
||||
Type: Documentation-only
|
||||
|
||||
`net.Server.prototype._listen2` is an undocumented alias for an internal
|
||||
function that sets up the listening handle. It is kept only so that code
|
||||
replacing it keeps being called by [`server.listen()`][], and it will be
|
||||
removed in a future version of Node.js. Use [`server.listen()`][] instead of
|
||||
calling or overriding `_listen2`.
|
||||
|
||||
[DEP0142]: #dep0142-repl_builtinlibs
|
||||
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
|
||||
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
|
||||
@@ -4740,6 +4759,7 @@ will throw an error in a future version.
|
||||
[`response.writableEnded`]: http.md#responsewritableended
|
||||
[`response.writableFinished`]: http.md#responsewritablefinished
|
||||
[`script.createCachedData()`]: vm.md#scriptcreatecacheddata
|
||||
[`server.listen()`]: net.md#serverlisten
|
||||
[`setInterval()`]: timers.md#setintervalcallback-delay-args
|
||||
[`setTimeout()`]: timers.md#settimeoutcallback-delay-args
|
||||
[`socket.bufferSize`]: net.md#socketbuffersize
|
||||
|
||||
Reference in new issue
Block a user