Hmmmm seems to become a fashionable trend, setting timeouts for methods :)
I had the same problem. []s Gustavo -----Original Message----- From: Ilya Kharmatsky [mailto:[EMAIL PROTECTED] Sent: December 16, 2004 8:44 AM To: HttpClient User Discussion Subject: Timeout 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]
