Re: tcp_keepalives_idle ignored - Mailing list pgsql-general

From Tom Lane
Subject Re: tcp_keepalives_idle ignored
Date
Msg-id 6976.1200156624@sss.pgh.pa.us
Whole thread Raw
In response to tcp_keepalives_idle ignored  ("henry" <henry@zen.co.za>)
Responses Re: tcp_keepalives_idle ignored
List pgsql-general
"henry" <henry@zen.co.za> writes:
> I have tried setting tcp_keepalives_idle = 120 (eg), then restarting PG,
> but SHOW ALL; shows tcp_keepalives_idle=0 (ignoring my setting).

Just FYI, this is the expected behavior on platforms where the kernel
doesn't allow adjustment of the TCP keepalive parameters from
userspace.  You didn't say what you are running the server on, but
the reference to /proc/sys makes me think it's Linux ... which seems
odd, because modern Linuxen do allow these things to be adjusted.

[ thinks... ]  Maybe you were inspecting the value in a Unix-socket
connection instead of a TCP connection?

This is all irrelevant to your real problem, to judge by the rest of
the thread, but I'm curious.

            regards, tom lane

pgsql-general by date:

Previous
From: "henry"
Date:
Subject: Re: tcp_keepalives_idle ignored
Next
From: Zelinskiy Alexander
Date:
Subject: Postgresql 8.2.4 on linux-sparc problem