hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: ConnectTimeoutException after 5 to 6 hrs
Date Wed, 12 Oct 2011 11:54:56 GMT
On Wed, 2011-10-12 at 14:10 +0300, Vasile Alin wrote:
> Are you sure this is not caused by your web server?
> 

The server is clearly unable to handle additional connections after a
while, so this does seem to suggest a server side issue.

Oleg


> On 11 October 2011 11:24, Litty <preeth.here@gmail.com> wrote:
> >
> > 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
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message