2
0
Files
puddle/CHANGELOG.md
T
Jack Christensen 91d0159cc9 Fix crash when pool is closed when resource is being created
Also, restore 100% test coverage.
2020-08-20 21:58:10 -05:00

904 B

Unreleased

  • Fix: Resource.Destroy no longer removes itself from the pool before its destructor has completed.
  • Fix: Prevent crash when pool is closed while resource is being created.

1.1.1 (April 2, 2020)

  • Pool.Close can be safely called multiple times
  • AcquireAllIDle immediately returns nil if pool is closed
  • CreateResource checks if pool is closed before taking any action
  • Fix potential race condition when CreateResource and Close are called concurrently. CreateResource now checks if pool is closed before adding newly created resource to pool.

1.1.0 (February 5, 2020)

  • Use runtime.nanotime for faster tracking of acquire time and last usage time.
  • Track resource idle time to enable client health check logic. (Patrick Ellul)
  • Add CreateResource to construct a new resource without acquiring it. (Patrick Ellul)
  • Fix deadlock race when acquire is cancelled. (Michael Tharp)