Skip to content

Commit ec397c9

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 fb3590d commit ec397c9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/src/sgml/config.sgml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,9 @@ SET ENABLE_SEQSCAN TO OFF;
591591
an otherwise idle connection. A value of 0 uses the system default.
592592
This parameter is supported only on systems that support the
593593
<symbol>TCP_KEEPIDLE</> or <symbol>TCP_KEEPALIVE</> symbols, and on
594-
Windows; on other systems, it must be zero. This parameter is ignored
595-
for connections made via a Unix-domain socket.
594+
Windows; on other systems, it must be zero.
595+
In sessions connected via a Unix-domain socket, this parameter is
596+
ignored and always reads as zero.
596597
</para>
597598
<note>
598599
<para>
@@ -614,8 +615,9 @@ SET ENABLE_SEQSCAN TO OFF;
614615
otherwise idle connection. A value of 0 uses the system default.
615616
This parameter is supported only on systems that support the
616617
<symbol>TCP_KEEPINTVL</> symbol, and on Windows; on other systems, it
617-
must be zero. This parameter is ignored for connections made via a
618-
Unix-domain socket.
618+
must be zero.
619+
In sessions connected via a Unix-domain socket, this parameter is
620+
ignored and always reads as zero.
619621
</para>
620622
<note>
621623
<para>
@@ -636,8 +638,9 @@ SET ENABLE_SEQSCAN TO OFF;
636638
Specifies the number of keepalive packets to send on an otherwise idle
637639
connection. A value of 0 uses the system default. This parameter is
638640
supported only on systems that support the <symbol>TCP_KEEPCNT</>
639-
symbol; on other systems, it must be zero. This parameter is ignored
640-
for connections made via a Unix-domain socket.
641+
symbol; on other systems, it must be zero.
642+
In sessions connected via a Unix-domain socket, this parameter is
643+
ignored and always reads as zero.
641644
</para>
642645
<note>
643646
<para>

0 commit comments

Comments
 (0)