postgres.git / summary / log / commit / refs

commit    94c2386878f01404ec9f4a7d5bcbbb21bee6b550
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Mon Jul 08 09:51:26 2024 +0000
First released in: 18.0, 12.20, 13.16, 14.13, 15.8, 16.4, 17.0
Reverted by: 8b03d743a85f (in 12.20)

    Force nodes for SSL tests to start in TCP mode
    
    Currently they are started in unix socket mode in ost cases, and then
    converted to run in TCP mode. This can result in port collisions, and
    there is no virtue in startng in unix socket mode, so start as we will
    be going on.
    
    Discussion: https://postgr.es/m/d6ee8761-39d1-0033-1afb-d5a57ee056f2@gmail.com
    
    Backpatch to all live branches (12 and up).


src/test/ssl/t/SSLServer.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/ssl/t/SSLServer.pm b/src/test/ssl/t/SSLServer.pm index 1e392b8fbf6..0843495546c 100644 --- a/src/test/ssl/t/SSLServer.pm +++ b/src/test/ssl/t/SSLServer.pm @@ -42,6 +42,12 @@ our @EXPORT = qw( test_connect_ok ); +# Force SSL tests nodes to begin in TCP mode. They won't work in Unix Socket +# mode and this way they will find a port to run on in a more robust way. +# Use an INIT block so it runs after the BEGIN block in TestLib.pm. + +INIT { $TestLib::use_unix_sockets = 0; } + # Define a couple of helper functions to test connecting to the server. # The first argument is a base connection string to use for connection. [parent: ece2969266d1]