| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Choose ports for test servers less likely to result in conflicts |
| Date: | 2024-07-08 20:14:05 |
| Message-ID: | E1sQukP-000tUZ-1r@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/8398485957b630a6686cb83b67a17c75dc6ec54b
Modified Files
--------------
src/test/perl/PostgresNode.pm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2024-07-08 21:19:49 | pgsql: Use CREATE DATABASE ... STRATEGY = FILE_COPY in pg_upgrade. |
| Previous Message | Andrew Dunstan | 2024-07-08 20:14:04 | pgsql: Choose ports for test servers less likely to result in conflicts |