Are you sure this is not caused by your web server? On 11 October 2011 11:24, Litty <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
