]> granicus.if.org Git - postgresql/commit
Tweak TCP-keepalive code so that an invalid setting doesn't cause us
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Sep 2005 02:26:33 +0000 (02:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Sep 2005 02:26:33 +0000 (02:26 +0000)
commitcc3bda37f704dffb641a19d17d447e0eeb1a6c6c
tree9144b085be25ef1a613cb4e1fb6cf494a73f0f29
parentf7a5f90c464cc68d70255923a8bd5046e0baba37
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/libpq/pqcomm.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/libpq/libpq-be.h