Fixed issue where the :meth:`.PoolEvents.reset` event hook would not be be
called in all cases when a :class:`_engine.Connection` were closed and was
in the process of returning its DBAPI connection to the connection pool.
+
The scenario was when the :class:`_engine.Connection` had already emitted
- ``.rollback()`` on its DBAPI connection within the process of returning the
- connection to the pool, where it would then instruct the connection pool to
- forego doing its own "reset" to save on the additional method call.
- However, this prevented custom pool reset schemes from being used within
- this hook, as such hooks by definition are doing more than just calling
- ``.rollback()``, and need to be invoked under all circumstances This was a
- regression that appeared in version 1.4.
+ ``.rollback()`` on its DBAPI connection within the process of returning
+ the connection to the pool, where it would then instruct the connection
+ pool to forego doing its own "reset" to save on the additional method
+ call. However, this prevented custom pool reset schemes from being
+ used within this hook, as such hooks by definition are doing more than
+ just calling ``.rollback()``, and need to be invoked under all
+ circumstances. This was a regression that appeared in version 1.4.
For version 1.4, the :meth:`.PoolEvents.checkin` remains viable as an
alternate event hook to use for custom "reset" implementations. Version 2.0