X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 798E3D1B568 for ; Tue, 28 Oct 2003 15:42:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 12073-08 for ; Tue, 28 Oct 2003 11:42:21 -0400 (AST) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id B2EA3D1B56F for ; Tue, 28 Oct 2003 11:42:16 -0400 (AST) Received: (qmail 16145 invoked from network); 28 Oct 2003 15:42:16 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (64.7.143.116) by net2.micro-automation.com with SMTP; 28 Oct 2003 15:42:16 -0000 Subject: Re: Connection time out From: Dave Cramer Reply-To: Dave@micro-automation.net To: Lemasson Sylvain Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <001901c39d5e$ca5a2d60$221e210a@PCJ1> References: <003301c39d2e$35500940$221e210a@PCJ1> <20031028112302.A32750@bacon> <001901c39d5e$ca5a2d60$221e210a@PCJ1> Content-Type: text/plain; charset=ISO-8859-1 Organization: Message-Id: <1067355731.1620.175.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 28 Oct 2003 10:42:11 -0500 Content-Transfer-Encoding: 8bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/110 X-Sequence-Number: 8540 Lemasson, I would check to make sure that you don't have a firewall between you and the database. As far as I know the default is infinite. Check the archives for "dropping connections" Dave On Tue, 2003-10-28 at 09:21, Lemasson Sylvain wrote: > Thank you for your reply thomas, but the setLoginTimout concernes the time a > driver wait while attempting to connect to a database. My question was about > the live time of a connection. I mean when we get a connection, postgres > reset the connection after a time out ("connection reset by peer" error > message). I want to set this time out to infinit but I do not know how. > > Lemasson Sylvain > Ingénieur développeur > s.lemasson@mak-system.net > tel: 01.48.63.27.27 > MAK-SYSTEM SERVICES > Groupe MAK-SYSTEM > Paris Nord 2 - 13, rue de la Perdrix > BP 50035-95946 Roissy CDG Cédex > FRANCE > ----- Original Message ----- > From: "Paul Thomas" > To: "Lemasson Sylvain" > Cc: "pgsql-jdbc @ postgresql . org" > Sent: Tuesday, October 28, 2003 12:23 PM > Subject: Re: [JDBC] Connection time out > > > > > > On 28/10/2003 08:33 Lemasson Sylvain wrote: > > > Hi, > > > where can we set the time-out of a connection ?. > > > > DriverManager.setLoginTimeout(int seconds); > > > > -- > > Paul Thomas > > > +------------------------------+-------------------------------------------- > -+ > > | Thomas Micro Systems Limited | Software Solutions for the Smaller > > Business | > > | Computer Consultants | > > http://www.thomas-micro-systems-ltd.co.uk | > > > +------------------------------+-------------------------------------------- > -+ > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Dave Cramer