1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

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.
This commit is contained in:
Tom Lane
2005-09-12 02:26:33 +00:00
parent f7a5f90c46
commit cc3bda37f7
4 changed files with 98 additions and 78 deletions

View File

@ -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)