Force release hosts from LB RackMiddleware

What does this MR do and why?

We couldn't find all the places where leak can be happening that are contributing to Investigate dead connections in gitlab rails co... (#588806).

This MR ensures it releases all active connection of the thread from available hosts, rather than relying only on request_cache[CACHE_KEY].

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading