« Return to Thread: Http Client 4.0 dead locks with spotty internet coverage

Re: Http Client 4.0 dead locks with spotty internet coverage

by David Spectar :: Rate this Message:

Reply to Author | View in Thread


Oleg,

Thank you for responding to everybody. We appreciate your willingness to help out.

The only way I can see to "use a socket timeout" as you suggested was to use a different Socket Factory than the one uses in the code
      schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));

Am I heading down the right path? Or should I somehow grab the socket from HttpClient and set it's timeout?

Thanks,
Michael



----- Original Message ----
From: Oleg Kalnichevski <olegk@...>
To: HttpClient User Discussion <httpclient-users@...>
Sent: Wednesday, June 17, 2009 12:09:37
Subject: Re: Http Client 4.0 dead locks with spotty internet coverage


Hi David

This problem has nothing to do with HttpClient. As you can see the thread is blocked in a native method call. Use a socket timeout to make sure I/O operations do not get stuck indefinitely.

Oleg


      New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

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

 « Return to Thread: Http Client 4.0 dead locks with spotty internet coverage