|
|
|
|
@ -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 |
|
|
|
|
|