Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C34696C9 for ; Tue, 11 Oct 2011 08:25:08 +0000 (UTC) Received: (qmail 43274 invoked by uid 500); 11 Oct 2011 08:25:08 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 42781 invoked by uid 500); 11 Oct 2011 08:25:07 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 42771 invoked by uid 99); 11 Oct 2011 08:25:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 08:25:05 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 08:25:00 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RDXdf-0002ml-UD for httpclient-users@hc.apache.org; Tue, 11 Oct 2011 01:24:39 -0700 Message-ID: <32629119.post@talk.nabble.com> Date: Tue, 11 Oct 2011 01:24:39 -0700 (PDT) From: Litty To: httpclient-users@hc.apache.org Subject: Re: ConnectTimeoutException after 5 to 6 hrs In-Reply-To: <32623247.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: preeth.here@gmail.com References: <32623247.post@talk.nabble.com> Hi, Posting some extra info. I have set connection timeout = 5000 and socket timeout = 60000. I am using DefaultHttpClient with SingleClientConnManager. If anyone can point to the direction in which I can debug it, that itself would be really helpful. Regards, Litty Litty wrote: > > Hi, > > I am using httpclient 4.1.2. If I do a connect to a particular IP and keep > the client program running for more than 5 to 6 hr, it starts giving: > org.apache.http.conn.ConnectTimeoutException: Connect to XXXXX timed out > at > org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:377) > at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) > at > org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) > at > org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) > at > org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573) > at > org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425) > at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) > at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) > at > org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732) > > If I connect to a different IP, it will succeed. The problem goes away > once I restart my client program. > > Server is a tomcat 6. Both client and server are running on JRE 5. > > Please help me with this. Do let me know if you need any extra info. > > Regards, > Litty > -- View this message in context: http://old.nabble.com/ConnectTimeoutException-after-5-to-6-hrs-tp32623247p32629119.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org