You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
net: deprecate and remove Server.prototype._listen2 legacy alias #64666
Server.prototype._listen2 is an undocumented alias for the internal setupListenHandle:
// lib/net.jsServer.prototype._listen2=setupListenHandle;// legacy alias
The function was renamed from _listen2 to setupListenHandle in 0ea45707a4; the alias was kept for back-compat.
It's undocumented and nothing in core calls it except listenInCluster, which routes through server._listen2(...) only to preserve an undocumented monkeypatch point (per the inline comment).
Proposal:
Deprecate the _listen2 alias.
After the deprecation cycle, remove it and call setupListenHandle(...) directly in listenInCluster.
Activity
bjohansebas commentedon Jul 27, 2026
yep go ahead