]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: shuffle attempts when one host resolves to more than one IP
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 13 Dec 2023 00:03:55 +0000 (01:03 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 14 Dec 2023 03:38:35 +0000 (04:38 +0100)
commit8f408c05d3d4d6ce9e4cba211b2e8d3667a5d23d
tree458b8d8a06febc2fec3e407e2ec16c2648074123
parent53761d76f08f24d760adf7e781b88e660a4062f2
fix: shuffle attempts when one host resolves to more than one IP

This behaviour (first resolve all the hosts, then shuffle the IPs) mimics
better what the libpq does in non-async mode.
psycopg/psycopg/_dns.py
psycopg/psycopg/conninfo.py
tests/test_conninfo.py