From e774b7649ca6b459f10e7748835eb15a096a4587 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 31 Oct 2012 14:26:20 -0400 Subject: [PATCH] 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. --- doc/src/sgml/config.sgml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index b4fcbaf9c7..88cea3df59 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -675,8 +675,9 @@ include 'filename' an otherwise idle connection. A value of 0 uses the system default. This parameter is supported only on systems that support the TCP_KEEPIDLE or TCP_KEEPALIVE symbols, and on - Windows; on other systems, it must be zero. This parameter is ignored - for connections made via a Unix-domain socket. + Windows; on other systems, it must be zero. + In sessions connected via a Unix-domain socket, this parameter is + ignored and always reads as zero. @@ -698,8 +699,9 @@ include 'filename' otherwise idle connection. A value of 0 uses the system default. This parameter is supported only on systems that support the TCP_KEEPINTVL symbol, and on Windows; on other systems, it - must be zero. This parameter is ignored for connections made via a - Unix-domain socket. + must be zero. + In sessions connected via a Unix-domain socket, this parameter is + ignored and always reads as zero. @@ -720,8 +722,9 @@ include 'filename' Specifies the number of keepalive packets to send on an otherwise idle connection. A value of 0 uses the system default. This parameter is supported only on systems that support the TCP_KEEPCNT - symbol; on other systems, it must be zero. This parameter is ignored - for connections made via a Unix-domain socket. + symbol; on other systems, it must be zero. + In sessions connected via a Unix-domain socket, this parameter is + ignored and always reads as zero.