]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed critical issue whereby the pool "checkout" event handler
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Jul 2015 21:59:34 +0000 (17:59 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Jul 2015 22:03:36 +0000 (18:03 -0400)
commit4096ad0f0980f6940be57aaee85791df8f975cd7
tree3cbba9826c3d8be0dfa4da2fa0241e5847d83d42
parenta6e83b204ffc13817fd0ef5bd7483ec811704992
- Fixed critical issue whereby the pool "checkout" event handler
may be called against a stale connection without the "connect"
event handler having been called, in the case where the pool
attempted to reconnect after being invalidated and failed; the stale
connection would remain present and would be used on a subsequent
attempt.  This issue has a greater impact in the 1.0 series subsequent
to 1.0.2, as it also delivers a blanked-out ``.info`` dictionary to
the event handler; prior to 1.0.2 the ``.info`` dictionary is still
the previous one.
fixes #3497
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/pool.py
test/engine/test_pool.py