On Fri, Jun 19, 2009 at 10:50:19PM -0700, David Spectar wrote:
>
> 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
>
Michael,
Simply use 'http.socket.timeout' parameter
http://wiki.apache.org/HttpComponents/HttpClientTutorial
Oleg
>
>
> ----- Original Message ----
> From: Oleg Kalnichevski <[email protected]>
> To: HttpClient User Discussion <[email protected]>
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]