Reject connection acquisition attempts if queue gets too long

XMLWordPrintableJSON

    • Networking & Observability
    • N&O 2025-04-28, N&O 2025-05-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In the event that the number of connection acquisition requests vastly outnumbers the maximum size of a pool, it's possible for the pool to get stuck thrashing between pushing new requests on the queue and popping older ones off when they time out, rather than making any progress towards actually servicing requests. We should consider outright rejecting work when the queue reaches a certain length, possibly as a factor of the maximum size (e.g. 1,000x the pool size).

            Assignee:
            Michael Popov
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: