Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4f4c54

Browse filesBrowse files
committed
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).
1 parent 6082b3d commit e4f4c54
Copy full SHA for e4f4c54

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎src/test/ssl/t/SSL/Server.pm

Copy file name to clipboardExpand all lines: src/test/ssl/t/SSL/Server.pm
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ use PostgreSQL::Test::Utils;
7070
use Test::More;
7171
use SSL::Backend::OpenSSL;
7272

73+
# Force SSL tests nodes to begin in TCP mode. They won't work in Unix Socket
74+
# mode and this way they will find a port to run on in a more robust way.
75+
# Use an INIT block so it runs after the BEGIN block in Utils.pm.
76+
77+
INIT { $PostgreSQL::Test::Utils::use_unix_sockets = 0; }
78+
7379
=pod
7480
7581
=head1 METHODS

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.