]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure greenlet_spawn propagates BaseException
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Jun 2021 21:42:53 +0000 (17:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Jun 2021 03:14:20 +0000 (23:14 -0400)
commit81cc6829f4538649c3c848767bcab55039767d85
treea0cf95905dd6ea017846275ec034210986a14aca
parent99e556b9d112fc6b3a301915dd59d739fdaadc36
ensure greenlet_spawn propagates BaseException

Fixed bug in asyncio implementation where the greenlet adaptation system
failed to propagate ``BaseException`` subclasses, most notably including
``asyncio.CancelledError``, to the exception handling logic used by the
engine to invalidate and clean up the connection, thus preventing
connections from being correctly disposed when a task was cancelled.

Fixes: #6652
Change-Id: Id3809e6c9e7bced46a7a3b5a0d1906c4168dc4fc
doc/build/changelog/unreleased_14/6652.rst [new file with mode: 0644]
lib/sqlalchemy/util/_concurrency_py3k.py
test/base/test_concurrency_py3k.py