]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Made a slight adjustment to the logic which waits for a pooled
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Dec 2013 20:53:59 +0000 (15:53 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Dec 2013 21:33:09 +0000 (16:33 -0500)
commit661b1158b44f340083e3154e5870a5067f31bc03
tree40ad58d29e3369dc892a753e9fb46d2d4ff49fb8
parent187db36b74c7a3c5dd3f6b1fe2380abfe88ac54c
- Made a slight adjustment to the logic which waits for a pooled
connection to be available, such that for a connection pool
with no timeout specified, it will every half a second break out of
the wait to check for the so-called "abort" flag, which allows the
waiter to break out in case the whole connection pool was dumped;
normally the waiter should break out due to a notify_all() but it's
possible this notify_all() is missed in very slim cases.
This is an extension of logic first introduced in 0.8.0, and the
issue has only been observed occasionally in stress tests.
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/util/queue.py
test/engine/test_pool.py