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)
commitd75e8ff949f6a7dfbcd85d4721f87a3331d0a4a4
tree50da0096802723d5ba8bee4e8d7b561fb70ba74e
parent5a3758575c27e26183c565579980f91232df1723
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