We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b1e6c commit 017eed6Copy full SHA for 017eed6
lib/_http_agent.js
@@ -435,7 +435,7 @@ Agent.prototype.removeSocket = function removeSocket(s, options) {
435
// There might be older requests in a different origin, but
436
// if the origin which releases the socket has pending requests
437
// that will be prioritized.
438
- for (const prop in this.requests) {
+ for (const prop of ObjectKeys(this.requests)) {
439
// Check whether this specific origin is already at maxSockets
440
if (this.sockets[prop] && this.sockets[prop].length) break;
441
debug('removeSocket, have a request with different origin,' +
0 commit comments