mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Unclosed connection leak when replacing pooled connection in SharedTimedStack.try_create (#37335)
This commit is contained in:
parent
db943c43c8
commit
f1c32f6a11
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ class ConnectionPool::SharedTimedStack
|
|||
throw_away_connection = @queue.pop
|
||||
@tagged_queue[throw_away_connection.site].delete(throw_away_connection)
|
||||
@create_block.call(preferred_tag)
|
||||
throw_away_connection.close
|
||||
elsif @created != @max
|
||||
connection = @create_block.call(preferred_tag)
|
||||
@created += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue