]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Add connection pool close()
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 14 Feb 2021 01:22:20 +0000 (02:22 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Mar 2021 04:07:25 +0000 (05:07 +0100)
commit08b0e2b9fbf8905f69f6d5cc5982589d62f67935
tree63be3a2797339560f63b8fafb0fd4365dac25d6f
parent3c6b50a91bad955a68348cdc702408248029e84d
Add connection pool close()

When the pool is closed, raise an exception in the thread of the clients
already waiting and refuse new requests. Let the current request finish
anyway.
psycopg3/psycopg3/pool.py
tests/test_pool.py