Skip to content

Commit

Permalink
http: do not increment socketCount on existing socket reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
jodevsa committed Oct 22, 2021
1 parent ced518c commit a74c6c9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ Agent.prototype.addRequest = function addRequest(req, options, port/* legacy */,
this.reuseSocket(socket, req);
setRequestSocket(this, req, socket);
ArrayPrototypePush(this.sockets[name], socket);
this.totalSocketCount++;
} else if (sockLen < this.maxSockets &&
this.totalSocketCount < this.maxTotalSockets) {
debug('call onSocket', sockLen, freeLen);
Expand Down

0 comments on commit a74c6c9

Please sign in to comment.