From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Choose ports for test servers less likely to result in conflicts
Date: Mon, 08 Jul 2024 20:14:05 +0000
Message-ID: <E1sQukP-000tUT-0O@gemulon.postgresql.org> (raw)
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)
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/c774d31f8493a2443cd9f5f82b6266347997c1d4
Modified Files
--------------
src/test/perl/PostgresNode.pm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Choose ports for test servers less likely to result in conflicts
In-Reply-To: <E1sQukP-000tUT-0O@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox