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 B4200D1B4F4 for ; Tue, 28 Oct 2003 14:17:25 +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 94048-06 for ; Tue, 28 Oct 2003 10:16:58 -0400 (AST) Received: from smtp1av.net.oleane.net (smtp-out.net.av.oleane.com [194.2.20.32]) by svr1.postgresql.org (Postfix) with ESMTP id C11ADD1B559 for ; Tue, 28 Oct 2003 10:16:53 -0400 (AST) Received: from VirusWall by smtp1av.net.oleane.net with ESMTP id h9SEGudo011799 for ; Tue, 28 Oct 2003 15:16:56 +0100 Received: from pc-web.oleane.com ([194.51.31.171]) by smtp1av.net.oleane.net (8.12.8p1.0918/8.12.0/8.12-FT) with ESMTP id h9SEGtXx011753 for ; Tue, 28 Oct 2003 15:16:55 +0100 Received: from PCJ1 ([10.33.30.34]) by pc-web.oleane.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VW7SB184; Tue, 28 Oct 2003 15:20:12 +0100 Message-ID: <001901c39d5e$ca5a2d60$221e210a@PCJ1> From: "Lemasson Sylvain" To: References: <003301c39d2e$35500940$221e210a@PCJ1> <20031028112302.A32750@bacon> Subject: Re: Connection time out Date: Tue, 28 Oct 2003 15:21:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/109 X-Sequence-Number: 8539 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 | > +------------------------------+-------------------------------------------- -+ >