]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Choose ports for test servers less likely to result in conflicts
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 8 Jul 2024 15:18:06 +0000 (11:18 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 8 Jul 2024 15:40:58 +0000 (11:40 -0400)
commit8398485957b630a6686cb83b67a17c75dc6ec54b
treeda9262a9cc356305eea52abf49a5988da0063b22
parent198088dc63de4f89835419969c7b5d1640be3441
Choose ports for test servers less likely to result in conflicts

If we choose ports in the range typically used for ephemeral ports there
is a danger of encountering a port conflict due to a race condition
between the time we choose the port in a range below that typically used
to allocate ephemeral ports, but higher than the range typically used by
well known services.

Author: Jelte Fenema-Nio, with some editing by me.

Discussion: https://postgr.es/m/d6ee8761-39d1-0033-1afb-d5a57ee056f2@gmail.com

Backpatch to all live branches (12 and up)
src/test/perl/PostgresNode.pm