From s.lemasson@mak-system.net Tue Oct 28 08:30:00 2003 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 33C6DD1B54B for ; Tue, 28 Oct 2003 08:30:00 +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 43603-07 for ; Tue, 28 Oct 2003 04:29:29 -0400 (AST) Received: from smtp2av.net.oleane.net (smtp-out.net.av.oleane.com [194.2.20.32]) by svr1.postgresql.org (Postfix) with ESMTP id E7DFCD1B550 for ; Tue, 28 Oct 2003 04:29:21 -0400 (AST) Received: from VirusWall by smtp2av.net.oleane.net with ESMTP id h9S8TIp6020306 for ; Tue, 28 Oct 2003 09:29:22 +0100 Received: from pc-web.oleane.com ([194.51.31.171]) by smtp2av.net.oleane.net (8.12.5.0918/8.12.0/8.12-FT) with ESMTP id h9S8TDjN020267 for ; Tue, 28 Oct 2003 09:29:13 +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 VW7SB1SD; Tue, 28 Oct 2003 09:32:29 +0100 Message-ID: <003301c39d2e$35500940$221e210a@PCJ1> From: "Lemasson Sylvain" To: Subject: Connection time out Date: Tue, 28 Oct 2003 09:33:48 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0030_01C39D36.96E4AEB0" 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-Spam-Status: No, hits=3.1 tagged_above=0.0 required=5.0 tests=BAYES_90, HTML_60_70 X-Spam-Level: *** X-Archive-Number: 200310/107 X-Sequence-Number: 8537 This is a multi-part message in MIME format. ------=_NextPart_000_0030_01C39D36.96E4AEB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, where can we set the time-out of a connection ?. Lemasson Sylvain ------=_NextPart_000_0030_01C39D36.96E4AEB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
   where can we set the time-out= of a=20 connection ?.
 
 
Lemasson Sylvain
------=_NextPart_000_0030_01C39D36.96E4AEB0-- From paul@tmsl.demon.co.uk Tue Oct 28 11:23:33 2003 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 9B369D1B4F4 for ; Tue, 28 Oct 2003 11:23:33 +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 65817-06 for ; Tue, 28 Oct 2003 07:23:05 -0400 (AST) Received: from anchor-post-37.mail.demon.net (anchor-post-37.mail.demon.net [194.217.242.87]) by svr1.postgresql.org (Postfix) with ESMTP id B185DD1B560 for ; Tue, 28 Oct 2003 07:23:02 -0400 (AST) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1AERwG-000N8N-0b; Tue, 28 Oct 2003 11:23:04 +0000 Date: Tue, 28 Oct 2003 11:23:02 +0000 From: Paul Thomas To: Lemasson Sylvain Cc: "pgsql-jdbc @ postgresql . org" Subject: Re: Connection time out Message-ID: <20031028112302.A32750@bacon> References: <003301c39d2e$35500940$221e210a@PCJ1> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <003301c39d2e$35500940$221e210a@PCJ1>; from s.lemasson@mak-system.net on Tue, Oct 28, 2003 at 08:33:48 +0000 X-Mailer: Balsa 1.2.3 Lines: 15 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/108 X-Sequence-Number: 8538 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 | +------------------------------+---------------------------------------------+ From s.lemasson@mak-system.net Tue Oct 28 14:17:25 2003 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 | > +------------------------------+-------------------------------------------- -+ > From Dave@micro-automation.net Tue Oct 28 15:42:48 2003 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 From tgl@sss.pgh.pa.us Tue Oct 28 15:56:31 2003 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 93154D1B563 for ; Tue, 28 Oct 2003 15:56:31 +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 15365-02 for ; Tue, 28 Oct 2003 11:56:04 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 97D9DD1B51B for ; Tue, 28 Oct 2003 11:55:59 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9SFtsit022558; Tue, 28 Oct 2003 10:55:54 -0500 (EST) To: "Lemasson Sylvain" Cc: pgsql-jdbc@postgresql.org Subject: Re: Connection time out In-reply-to: <001901c39d5e$ca5a2d60$221e210a@PCJ1> References: <003301c39d2e$35500940$221e210a@PCJ1> <20031028112302.A32750@bacon> <001901c39d5e$ca5a2d60$221e210a@PCJ1> Comments: In-reply-to "Lemasson Sylvain" message dated "Tue, 28 Oct 2003 15:21:33 +0100" Date: Tue, 28 Oct 2003 10:55:53 -0500 Message-ID: <22557.1067356553@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/111 X-Sequence-Number: 8541 "Lemasson Sylvain" writes: > 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 can assure you that the Postgres backend will never do any such thing. Your problem must be somewhere in the communication pathway. One likely possibility is that you have an address-translating firewall (NAT box) between you and the database server. NAT boxes will commonly forget about connections that have been idle for too long. It may not be possible to persuade the firewall not to do this --- if you cannot bypass the firewall, your best bet may be to issue an empty query every so often to keep the connection alive. regards, tom lane From dr_saca@freemail.hu Wed May 17 15:14:04 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 972489FA226 for ; Wed, 17 May 2006 12:14:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 36196-04 for ; Wed, 17 May 2006 12:13:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 9B98D9F9C18 for ; Wed, 17 May 2006 12:13:59 -0300 (ADT) Received: from medcfs.hu (246-137.fixip.pool.ew.hu [212.108.246.137]) by svr4.postgresql.org (Postfix) with ESMTP id 2FC335B56C0 for ; Wed, 17 May 2006 15:13:58 +0000 (GMT) Received: from [192.168.1.4] (saca.intra.medcfs.hu [192.168.1.4]) by medcfs.hu (Postfix) with ESMTP id 3A60D7D8D5 for ; Wed, 17 May 2006 17:15:52 +0200 (CEST) Message-ID: <446B3DB1.40109@freemail.hu> Date: Wed, 17 May 2006 17:13:53 +0200 From: Bakos Sandor User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: connection time out Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/74 X-Sequence-Number: 15202 Hi All! I have a linux clinet which connect to the remote posgtresql on a linux too with a java GUI application. This application read an write the database when a blockout occurs. In this situation the java application leave many connection in the postgresql (about 30). When the client is restarting and try to connect to the database I get an exception: Caused by: java.net.ConnectException: Connection timed out but the max connection in the server is 200. From the console I can create many connection to the server (psql) just the java can't. Someone have an idea ? (postgresql 8, java 1.5) Thx. Saca From pg@fastcrypt.com Thu May 18 11:03:05 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9EE889FA293 for ; Thu, 18 May 2006 08:03:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 10971-07 for ; Thu, 18 May 2006 08:02:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 87D6A9FA4EA for ; Thu, 18 May 2006 08:02:59 -0300 (ADT) Received: (qmail 5793 invoked from network); 18 May 2006 11:02:57 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 18 May 2006 11:02:57 -0000 In-Reply-To: <446B3DB1.40109@freemail.hu> References: <446B3DB1.40109@freemail.hu> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: connection time out Date: Thu, 18 May 2006 07:02:55 -0400 To: Bakos Sandor X-Mailer: Apple Mail (2.750) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/79 X-Sequence-Number: 15207 Hi, Check your pg_hba.conf file. Java typically will connect from the main ethernet address where as psql connects from localhost. Dave On 17-May-06, at 11:13 AM, Bakos Sandor wrote: > Hi All! > > I have a linux clinet which connect to the remote posgtresql on a > linux too with a java GUI application. > This application read an write the database when a blockout occurs. > In this situation the java application > leave many connection in the postgresql (about 30). When the client > is restarting and try to connect to the database I get an > exception: > > Caused by: java.net.ConnectException: Connection timed out > > but the max connection in the server is 200. From the console I can > create many connection to the server (psql) just the java can't. > > Someone have an idea ? > > (postgresql 8, java 1.5) > > Thx. > Saca > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > From dr_saca@freemail.hu Thu May 18 11:41:13 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9C9079FA4EA for ; Thu, 18 May 2006 08:41:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16186-07 for ; Thu, 18 May 2006 08:41:06 -0300 (ADT) X-Greylist: delayed 20:27:12.447121 by SQLgrey- Received: from medcfs.hu (246-137.fixip.pool.ew.hu [212.108.246.137]) by postgresql.org (Postfix) with ESMTP id 8AF349F9C18 for ; Thu, 18 May 2006 08:41:07 -0300 (ADT) Received: from [192.168.1.4] (saca.intra.medcfs.hu [192.168.1.4]) by medcfs.hu (Postfix) with ESMTP id 648237D8D6; Thu, 18 May 2006 13:43:09 +0200 (CEST) Message-ID: <446C5D4E.2010802@freemail.hu> Date: Thu, 18 May 2006 13:41:02 +0200 From: Bakos Sandor User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: pgsql-jdbc@postgresql.org Subject: Re: connection time out References: <446B3DB1.40109@freemail.hu> <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com> In-Reply-To: <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/80 X-Sequence-Number: 15208 Hi, I don't understand this. When I would like connect again to the server (after the blackout) I can connect from the client to the server from psql but the Java can't. In this case no connection from the localhost. What can I set in the pg_hba.conf ? Saca Dave Cramer wrote: > Hi, > > Check your pg_hba.conf file. Java typically will connect from the > main ethernet address where as psql connects from localhost. > > Dave > On 17-May-06, at 11:13 AM, Bakos Sandor wrote: > >> Hi All! >> >> I have a linux clinet which connect to the remote posgtresql on a >> linux too with a java GUI application. >> This application read an write the database when a blockout occurs. >> In this situation the java application >> leave many connection in the postgresql (about 30). When the client >> is restarting and try to connect to the database I get an >> exception: >> >> Caused by: java.net.ConnectException: Connection timed out >> >> but the max connection in the server is 200. From the console I can >> create many connection to the server (psql) just the java can't. >> >> Someone have an idea ? >> >> (postgresql 8, java 1.5) >> >> Thx. >> Saca >> >> ---------------------------(end of >> broadcast)--------------------------- >> TIP 9: In versions below 8.0, the planner will ignore your desire to >> choose an index scan if your joining column's datatypes do not >> match >> > > >