Content-Length: 258455 | pFad | http://github.com/postgrespro/postgres_cluster/commit/7ac5d9b31637b1856c7ac9cb625bcca694a2790a

22 PostgresNode: wrap correctly around port number range end · postgrespro/postgres_cluster@7ac5d9b · GitHub
Skip to content

Commit 7ac5d9b

Browse files
committed
PostgresNode: wrap correctly around port number range end
Per note from Tom Lane
1 parent 7e19db0 commit 7ac5d9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ sub get_new_node
321321

322322
while ($found == 0)
323323
{
324-
$port++;
324+
# wrap correctly around range end
325+
$port = 49152 if ++$port >= 65536;
325326
print "# Checking for port $port\n";
326327
if (!TestLib::run_log([ 'pg_isready', '-p', $port ]))
327328
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/7ac5d9b31637b1856c7ac9cb625bcca694a2790a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy