Requests hanging, not timing out

2004-05-06 Thread Otis Gospodnetic
Hello, I am using HttpClient from CVS HEAD from exactly 1 month ago (May 6, 2004). Although I set the time-out to 5 seconds, I noticed that it does not always work, and because of that my application often hangs indefinitely. Perhaps I'm not using the API correctly. Here are the relevant portion

Re: Requests hanging, not timing out

2004-05-06 Thread Oleg Kalnichevski
On Thu, 2004-05-06 at 20:33, [EMAIL PROTECTED] wrote: > I like bleeding edge code, I'll try it as soon as you have it ready. > I am now using the current HEAD and setting the timeout as you > suggested. > What is the difference between connection and socket timeout, and is > connection timeout even

Re: Requests hanging, not timing out

2004-05-06 Thread ogjunk-httpclient
I like bleeding edge code, I'll try it as soon as you have it ready. I am now using the current HEAD and setting the timeout as you suggested. What is the difference between connection and socket timeout, and is connection timeout even needed if I set a socket timeout? Thanks, Otis --- Oleg Kalni

Re: Requests hanging, not timing out

2004-05-06 Thread Oleg Kalnichevski
Otis, Nowhere in your code do I see you set socket timeout. Connection timeout determines the time HttpClient spends waiting a connection to be established. The connection timeout does not affect socket I/O operations. Try this: _client.getHttpConnectionManager().getParams().setSoTimeout(5000);

Requests hanging, not timing out

2004-05-06 Thread ogjunk-httpclient
Hello, I am using HttpClient from CVS HEAD from exactly 1 month ago (May 6, 2004). Although I set the time-out to 5 seconds, I noticed that it does not always work, and because of that my application often hangs indefinitely. Perhaps I'm not using the API correctly. Here are the relevant portion