Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
rickyes committed May 29, 2020
commit eabfaee3f2a8b5c3bd216b6c73d69fe875401e4e
7 changes: 4 additions & 3 deletions lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,10 @@ Agent.prototype.removeSocket = function removeSocket(s, options) {
debug('removeSocket, have a request, make a socket');
req = this.requests[name][0];
} else {
Comment thread
rickyes marked this conversation as resolved.
// TODO(rickyes): this logic will not be FIFO across origins. There might be
// older requests in a different origin, but if the origin which releases
// the socket has pending requests that will be prioritized.
// TODO(rickyes): this logic will not be FIFO across origins.
// There might be older requests in a different origin, but
// if the origin which releases the socket has pending requests
// that will be prioritized.
for (const prop in this.requests) {
Comment thread
rickyes marked this conversation as resolved.
debug('removeSocket, have a request with different origin,' +
' make a socket');
Expand Down