mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
http: fix deferToConnect comments
PR-URL: https://github.com/nodejs/node/pull/27876 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
18650579e8
commit
d948656635
1 file changed
+4
-4
+4
-4
@@ -711,10 +711,10 @@ function onSocketNT(req, socket) {
|
||||
ClientRequest.prototype._deferToConnect = _deferToConnect;
|
||||
function _deferToConnect(method, arguments_, cb) {
|
||||
// This function is for calls that need to happen once the socket is
|
||||
// connected and writable. It's an important promisy thing for all the socket
|
||||
// calls that happen either now (when a socket is assigned) or
|
||||
// in the future (when a socket gets assigned out of the pool and is
|
||||
// eventually writable).
|
||||
// assigned to this request and writable. It's an important promisy
|
||||
// thing for all the socket calls that happen either now
|
||||
// (when a socket is assigned) or in the future (when a socket gets
|
||||
// assigned out of the pool and is eventually writable).
|
||||
|
||||
const callSocketMethod = () => {
|
||||
if (method)
|
||||
|
||||
Reference in new issue
Block a user