Skip to content

Commit

Permalink
Remove connection pool patch
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Nov 19, 2024
1 parent 2177fda commit 5714c2e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/msf/core/thread_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,6 @@ def spawn(name, crit, *args, &block)
error: e
)
raise e
ensure
if framework.db && framework.db.active && framework.db.is_local?
# NOTE: despite the Deprecation Warning's advice, this should *NOT*
# be ApplicationRecord.connection.close which causes unrelated
# threads to raise ActiveRecord::StatementInvalid exceptions at
# some point in the future, presumably due to the pool manager
# believing that the connection is still usable and handing it out
# to another thread.
::ApplicationRecord.connection_pool.release_connection
end
end
end
else
Expand Down

0 comments on commit 5714c2e

Please sign in to comment.