From: rinpatch Date: Thu, 3 Sep 2020 20:15:22 +0000 (+0300) Subject: HTTP: radically simplify pool checkin/checkout X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=d34fe2840d969c30b393cfb73e34b6301027c776;hp=d34fe2840d969c30b393cfb73e34b6301027c776;p=akkoma HTTP: radically simplify pool checkin/checkout Use a custom tesla middleware instead of adapter helper function + custom redirect middleware. This will also fix "Client died before releasing the connection" messages when the request pool is overloaded. Since the checkout is now done after passing ConcurrentLimiter. This is technically less efficient, since the connection needs to be checked in/out every time the middleware is left or entered respectively. But I don't think the nanoseconds we might lose on redirects to the same host are worth the complexity. ---