From 5acd417c8f0f720418560360d9b3e543d593e4f0 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 6 Jul 2010 21:14:25 +0000 Subject: Support setting the keepalive idle time on MacOS X. MacOS X uses TCP_KEEPALIVE rather than TCP_KEEPIDLE for this purpose. Thanks to Fujii Masao for the review. --- doc/src/sgml/config.sgml | 11 ++++++----- doc/src/sgml/libpq.sgml | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 9631492ea5a..7e0c7647a4a 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -523,11 +523,12 @@ SET ENABLE_SEQSCAN TO OFF; - On systems that support the TCP_KEEPIDLE socket option, specifies the + On systems that support the TCP_KEEPIDLE or + TCP_KEEPALIVE socket option, specifies the number of seconds between sending keepalives on an otherwise idle - connection. A value of zero uses the system default. If TCP_KEEPIDLE is - not supported, this parameter must be zero. This parameter is ignored for - connections made via a Unix-domain socket. + connection. A value of zero uses the system default. If neither of + these socket options is supported, this parameter must be zero. This + parameter is ignored for connections made via a Unix-domain socket. diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 9f74024d457..f70541bb7f1 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,4 +1,4 @@ - + <application>libpq</application> - C Library @@ -298,10 +298,10 @@ Controls the number of seconds of inactivity after which TCP should send a keepalive message to the server. A value of zero uses the - system default. This parameter is ignored if the - TCP_KEEPIDLE socket option is not supported, for - connections made via a Unix-domain socket, or if keepalives are - disabled. + system default. This parameter is ignored if the neither the + TCP_KEEPIDLE nor the TCP_KEEPALIVE socket + options are supported, for connections made via a Unix-domain + socket, or if keepalives are disabled. -- cgit v1.2.3