mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
428c06f342
* Automatically drop all connections after fork Fix: https://github.com/mperham/connection_pool/issues/165 Using connections inherited from a parent process can have very nasty consequences and it's pretty much never desired. This patch use the `Process._fork` API added in Ruby 3.1 to automatically detect when a fork is happening, and when it does, drop all existing connections. * after_fork callback: keep instances in a weakref set This is much faster than relying on `ObjectSpace.each_object` Co-authored-by: Jean Boussier <jean.boussier@gmail.com> |
||
---|---|---|
.. | ||
helper.rb | ||
test_connection_pool.rb | ||
test_connection_pool_timed_stack.rb |