Re: tcp_keepalives_idle ignored

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "henry" <henry(at)zen(dot)co(dot)za>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: tcp_keepalives_idle ignored
Date: 2008-01-12 16:50:24
Message-ID: 6976.1200156624@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"henry" <henry(at)zen(dot)co(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin 2008-01-12 18:24:34 Re: Postgres and MySQL Rosetta stone??
Previous Message henry 2008-01-12 13:14:32 Re: tcp_keepalives_idle ignored