From cc3bda37f704dffb641a19d17d447e0eeb1a6c6c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 12 Sep 2005 02:26:33 +0000 Subject: Tweak TCP-keepalive code so that an invalid setting doesn't cause us to drop connections unceremoniously. Also some other marginal cleanups: don't query getsockopt() repeatedly if it fails, and avoid having the apparent definition of struct Port depend on which system headers you might have included or not. Oliver Jowett and Tom Lane. --- src/backend/utils/misc/postgresql.conf.sample | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/backend/utils/misc/postgresql.conf.sample') diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 509035ce3bf..44179f72f86 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -75,12 +75,14 @@ # - TCP Keepalives - # see 'man 7 tcp' for details -#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in secs; 0 uses the - # system default -#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds; 0 uses the - # system default -#tcp_keepalives_count = 0 # TCP_KEEPCNT, in seconds; 0 uses the - # system default + +#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds; + # 0 selects the system default +#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds; + # 0 selects the system default +#tcp_keepalives_count = 0 # TCP_KEEPCNT; + # 0 selects the system default + #--------------------------------------------------------------------------- # RESOURCE USAGE (except WAL) -- cgit v1.2.3