@@ -2668,6 +2668,22 @@ Type: Documentation-only
2668
2668
2669
2669
Use [`request.destroy()`][] instead of [`request.abort()`][].
2670
2670
2671
+ <a id="DEP0XXX"></a>
2672
+ ### DEP0XXX: Use `net.connect()` instead of re-using sockets through
2673
+ `socket.connect()`
2674
+ <!-- YAML
2675
+ changes:
2676
+ - version:
2677
+ - REPLACEME
2678
+ pr-url: https://github.com/nodejs/node/pull/33204
2679
+ description: Documentation-only deprecation.
2680
+ -->
2681
+
2682
+ Type: Documentation-only
2683
+
2684
+ Use [`net.connect()`][] instead of re-using sockets through
2685
+ [`socket.connect()`][].
2686
+
2671
2687
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
2672
2688
[`--throw-deprecation`]: cli.html#cli_throw_deprecation
2673
2689
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
@@ -2722,6 +2738,7 @@ Use [`request.destroy()`][] instead of [`request.abort()`][].
2722
2738
[`https.get()`]: https.html#https_https_get_options_callback
2723
2739
[`https.request()`]: https.html#https_https_request_options_callback
2724
2740
[`module.createRequire()`]: modules.html#modules_module_createrequire_filename
2741
+ [`net.connect()`]: net.html#net_net_connect
2725
2742
[`os.networkInterfaces()`]: os.html#os_os_networkinterfaces
2726
2743
[`os.tmpdir()`]: os.html#os_os_tmpdir
2727
2744
[`process.env`]: process.html#process_process_env
@@ -2742,6 +2759,7 @@ Use [`request.destroy()`][] instead of [`request.abort()`][].
2742
2759
[`script.createCachedData()`]: vm.html#vm_script_createcacheddata
2743
2760
[`setInterval()`]: timers.html#timers_setinterval_callback_delay_args
2744
2761
[`setTimeout()`]: timers.html#timers_settimeout_callback_delay_args
2762
+ [`socket.connect()`]: net.html#net_socket_connect
2745
2763
[`timeout.ref()`]: timers.html#timers_timeout_ref
2746
2764
[`timeout.refresh()`]: timers.html#timers_timeout_refresh
2747
2765
[`timeout.unref()`]: timers.html#timers_timeout_unref
0 commit comments