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 e8a4e56 commit cd9a810Copy full SHA for cd9a810
lib/_http_agent.js
@@ -428,7 +428,7 @@ Agent.prototype.removeSocket = function removeSocket(s, options) {
428
// There might be older requests in a different origin, but
429
// if the origin which releases the socket has pending requests
430
// that will be prioritized.
431
- for (const prop in this.requests) {
+ for (const prop of ObjectKeys(this.requests)) {
432
// Check whether this specific origin is already at maxSockets
433
if (this.sockets[prop] && this.sockets[prop].length) break;
434
debug('removeSocket, have a request with different origin,' +
0 commit comments