pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Test both 0.0.0.0 and 127.0.0.x addresses to find a usable port.
Date: Mon, 15 Apr 2019 03:14:16 +0000
Message-ID: <E1hFs4W-0005Yk-NX@gemulon.postgresql.org> (raw)

Test both 0.0.0.0 and 127.0.0.x addresses to find a usable port.

Commit c098509927f9a49ebceb301a2cb6a477ecd4ac3c changed
PostgresNode::get_new_node() to probe 0.0.0.0 instead of 127.0.0.1, but
the new test was less effective for Windows native Perl.  This increased
the failure rate of buildfarm members bowerbird and jacana.  Instead,
test 0.0.0.0 and concrete addresses.  This restores the old level of
defense, but the algorithm is still subject to its longstanding time of
check to time of use race condition.  Back-patch to 9.6, like the
previous change.

Discussion: https://postgr.es/m/GrdLgAdUK9FdyZg8VIcTDKVOkys122ZINEb3CjjoySfGj2KyPiMKTh1zqtRp0TAD7FJ27G-OBB3eplxI...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4ab02e8156270592c1eae03d5b9ee36bb8c761c2

Modified Files
--------------
src/test/perl/PostgresNode.pm | 62 ++++++++++++++++++++++++++++---------------
1 file changed, 41 insertions(+), 21 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1hFs4W-0005Yk-NX@gemulon.postgresql.org>
Permalink:  ../E1hFs4W-0005Yk-NX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hFs4W-0005Yk-NX@gemulon.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Test both 0.0.0.0 and 127.0.0.x addresses to find a usable port.
  In-Reply-To: <E1hFs4W-0005Yk-NX@gemulon.postgresql.org>
  References: <E1hFs4W-0005Yk-NX@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