From d948656635a8abc537ff73db8629854efadfbf02 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 26 May 2019 12:39:07 +0200 Subject: [PATCH] http: fix deferToConnect comments PR-URL: https://github.com/nodejs/node/pull/27876 Reviewed-By: Matteo Collina Reviewed-By: Rich Trott --- lib/_http_client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index bc2716b254b440..5555db13623553 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -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)