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]



Reply via email to