From: Sergei Georgiev <sergei.georgiev@gmail.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Socket timeouts (probably)
Date: Thu, 24 Feb 2005 12:04:13 +0200
Message-ID: <b9e7d4a8050224020458cb6a3e@mail.gmail.com> (raw)
In-Reply-To: <421D6222.500@opencloud.com>
References: <b9e7d4a805022307155e383636@mail.gmail.com>
<421D6222.500@opencloud.com>
> You may want to try tweaking /proc/sys/net/ipv4/tcp_keepalive_* on the
> server to make TCP keepalives notice the dead connection faster (these
> are global settings, though). There are corresponding setsockopt() calls
> you could make on a per-socket basis if you are prepared to tweak the
> server code.
I'd rather not, because as Markus said there may be other services
started on the DB machine in the future (it's just a prototype testing
for a new project). I found that there is a property called
"statement_timeout" in the postgresql.conf. This limits the time, in
which a statement must be executed. It looks like a solution to me,
but I need to test it.
10x anyway :)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: sergei.georgiev@gmail.com, oliver@opencloud.com
Subject: Re: Socket timeouts (probably)
In-Reply-To: <b9e7d4a8050224020458cb6a3e@mail.gmail.com>
References: <b9e7d4a805022307155e383636@mail.gmail.com> <421D6222.500@opencloud.com> <b9e7d4a8050224020458cb6a3e@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox