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:
@ -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)
|
||||
|
Reference in New Issue
Block a user