]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add asyncio.TimeoutError as an exit exception
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Jun 2021 15:28:49 +0000 (11:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Jun 2021 16:44:58 +0000 (12:44 -0400)
commit2fa39312b2c878b717d4c4f41380e5a8931eb374
treeb9b33cf021e82227bd6ab237a06922e0388769be
parent94169108cdd4dace09b752a6af4f4404819b49a3
Add asyncio.TimeoutError as an exit exception

Added ``asyncio.exceptions.TimeoutError``,
``asyncio.exceptions.CancelledError`` as so-called "exit exceptions", a
class of exceptions that include things like ``GreenletExit`` and
``KeyboardInterrupt``, which are considered to be events that warrant
considering a DBAPI connection to be in an unusable state where it should
be recycled.

Fixes: #6592
Change-Id: Idcfa7aaa2d7660838b907388db9c6457afa6edbd
doc/build/changelog/unreleased_14/6592.rst [new file with mode: 0644]
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/_concurrency_py3k.py
lib/sqlalchemy/util/concurrency.py