X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3B21855443 for ; Thu, 24 Feb 2005 10:04:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64450-03 for ; Thu, 24 Feb 2005 10:04:07 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id DBC3654E09 for ; Thu, 24 Feb 2005 10:04:06 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 68so137102wri for ; Thu, 24 Feb 2005 02:04:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=DTeVOqVjHit3boCJmcggD45y3Ozd0Cgl2kbyr1QfgBb/wNt7hxTO4qs33ZOsCHjQItD69sACwa+imoc3wvV7mawFu+qhGHzk/LxCsRHonXFhIvYJG4uxvw8QwD0lZuqPj5xRTayhOjJmykIdfqmdSYWSmevST5jCJ4ONOSEjcFY= Received: by 10.54.37.72 with SMTP id k72mr110004wrk; Thu, 24 Feb 2005 02:04:13 -0800 (PST) Received: by 10.54.15.34 with HTTP; Thu, 24 Feb 2005 02:04:13 -0800 (PST) Message-ID: Date: Thu, 24 Feb 2005 12:04:13 +0200 From: Sergei Georgiev Reply-To: Sergei Georgiev To: Oliver Jowett Subject: Re: Socket timeouts (probably) Cc: pgsql-jdbc@postgresql.org In-Reply-To: <421D6222.500@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <421D6222.500@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200502/184 X-Sequence-Number: 12364 > 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 :)