Ilya,

I seriously doubt that this is the case. See for yourself

http://jakarta.apache.org/commons/httpclient/3.0/xref/org/apache/commons/httpclient/HttpMethodDirector.html#369

Oleg

On Thu, Dec 16, 2004 at 05:44:05PM +0200, Ilya Kharmatsky wrote:
> I need to set the timeout for read/write for specific method.
> If I'm using HttpClientParameters - everything works as expected,
> after
> 
> HttpClient client = new HttpClient();
> client.getParams().setSoTimeout(1000);
> GetMethod method = new GetMethod("http://www....";);
> client.executeMethod(method);
> 
> ....
> 
> In case, the server's response has been "too slow" - the 
> SocketTimeoutException
> will be thrown.
> 
> But, if I want to set same for single HttpMethod (by using its 
> HttpMethodParameter)
> the timeout is ignored:
> 
> HttpClient client = new HttpClient();
> GetMethod method = new GetMethod("http://www....";);
> method.getParams().setSoTimeout(1000);
> client.executeMethod(method);
> 
> Any ideas?
> 
> Thanks,
> Ilya
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to