From 68a26ce7c650ac2140c295b52f78b3d08191d6bd Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 30 Jan 2026 10:59:04 +0100 Subject: [PATCH] Fix connection recycling pushing symbols to connection pool (#37674) --- app/lib/connection_pool/shared_timed_stack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/connection_pool/shared_timed_stack.rb b/app/lib/connection_pool/shared_timed_stack.rb index f1ace3301..8a13f4473 100644 --- a/app/lib/connection_pool/shared_timed_stack.rb +++ b/app/lib/connection_pool/shared_timed_stack.rb @@ -70,8 +70,8 @@ class ConnectionPool::SharedTimedStack if @created == @max && !@queue.empty? throw_away_connection = @queue.pop @tagged_queue[throw_away_connection.site].delete(throw_away_connection) - @create_block.call(preferred_tag) throw_away_connection.close + @create_block.call(preferred_tag) elsif @created != @max connection = @create_block.call(preferred_tag) @created += 1