Skip to content

Commit e774b76

Browse files
committed
Document that TCP keepalive settings read as 0 on Unix-socket connections.
Per bug #7631 from Rob Johnson. The code is operating as designed, but the docs didn't explain it.
1 parent 9b8dd7e commit e774b76

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/src/sgml/config.sgml

+9-6
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,9 @@ include 'filename'
675675
an otherwise idle connection. A value of 0 uses the system default.
676676
This parameter is supported only on systems that support the
677677
<symbol>TCP_KEEPIDLE</> or <symbol>TCP_KEEPALIVE</> symbols, and on
678-
Windows; on other systems, it must be zero. This parameter is ignored
679-
for connections made via a Unix-domain socket.
678+
Windows; on other systems, it must be zero.
679+
In sessions connected via a Unix-domain socket, this parameter is
680+
ignored and always reads as zero.
680681
</para>
681682
<note>
682683
<para>
@@ -698,8 +699,9 @@ include 'filename'
698699
otherwise idle connection. A value of 0 uses the system default.
699700
This parameter is supported only on systems that support the
700701
<symbol>TCP_KEEPINTVL</> symbol, and on Windows; on other systems, it
701-
must be zero. This parameter is ignored for connections made via a
702-
Unix-domain socket.
702+
must be zero.
703+
In sessions connected via a Unix-domain socket, this parameter is
704+
ignored and always reads as zero.
703705
</para>
704706
<note>
705707
<para>
@@ -720,8 +722,9 @@ include 'filename'
720722
Specifies the number of keepalive packets to send on an otherwise idle
721723
connection. A value of 0 uses the system default. This parameter is
722724
supported only on systems that support the <symbol>TCP_KEEPCNT</>
723-
symbol; on other systems, it must be zero. This parameter is ignored
724-
for connections made via a Unix-domain socket.
725+
symbol; on other systems, it must be zero.
726+
In sessions connected via a Unix-domain socket, this parameter is
727+
ignored and always reads as zero.
725728
</para>
726729
<note>
727730
<para>

0 commit comments

Comments
 (0)