]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix a couple of bugs in the asyncio implementation
authorFederico Caselli <cfederico87@gmail.com>
Sat, 9 Jan 2021 12:25:55 +0000 (13:25 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 21 Jan 2021 20:42:58 +0000 (21:42 +0100)
commite56534995de2a97210d9c3d58183e8d245cdae94
tree8b820ef993bb4157b107322a6bba8f3c2d78961d
parent851a3a362ee5e05b8438f92e2e1df63c68f79d68
Fix a couple of bugs in the asyncio implementation

Log an informative message if a connection is not closed
and the gc is reclaiming it when using an async dpapi, that
does not support running IO at that stage.

The ``AsyncAdaptedQueue`` used by default on async dpapis
should instantiate a queue only when it's first used
to avoid binding it to a possibly wrong event loop.

Fixes: #5823
Change-Id: Ibfc50e209b1937ae3d6599ae7997f028c7a92c33
doc/build/changelog/unreleased_14/5823.rst
doc/build/orm/extensions/asyncio.rst
lib/sqlalchemy/ext/asyncio/engine.py
lib/sqlalchemy/pool/base.py
lib/sqlalchemy/pool/impl.py
lib/sqlalchemy/util/queue.py
test/base/test_concurrency_py3k.py
test/engine/test_pool.py