Thanks, I tried with loogging and I get this: 2011/01/26 11:36:17:007 EST [DEBUG] headers - >> Connection: Keep-Alive 2011/01/26 11:46:17:030 EST [DEBUG] DefaultClientConnection - Receiving response: HTTP/1.1 200 OK 2011/01/26 11:46:17:031 EST [DEBUG] headers - << HTTP/1.1 200 OK 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Date: Wed, 26 Jan 2011 16:36:17 GMT 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Server: IBM_HTTP_Server 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Accept-Ranges: bytes 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Pragma: no-cache 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Cache-Control: no-cache 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Expires: now 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Content-Length: 366 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Keep-Alive: timeout=10, max=100 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Connection: Keep-Alive 2011/01/26 11:46:17:031 EST [DEBUG] headers - << Content-Type: text/xml;charset=ISO-8859-1 2011/01/26 11:46:17:032 EST [DEBUG] headers - << Content-Language: en 2011/01/26 11:46:17:038 EST [DEBUG] DefaultHttpClient - Connection can be kept alive for 10000 ms 2011/01/26 11:46:17:042 EST [DEBUG] SingleClientConnManager - Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@1be0f0a
So it looks like a server-side bug, unless I'm misreading the output. I'll verify with the server admins. Laurent Duperval 514 380-4324 Oleg Kalnichevski <[email protected]> 2011-01-26 11:29 Veuillez répondre à "HttpClient User Discussion" <[email protected]> A HttpClient User Discussion <[email protected]> cc Objet Re: RE How to prevent retry on time out while waiting for response On Wed, 2011-01-26 at 11:14 -0500, [email protected] wrote: > Let me just add that I tried a much shorter timeout (20 seconds) and that > makes the process fail much more rapidly. > > I'm also investigating whether the fact that the httpclient call is > executed within a thread has any effect. Laurent HttpClient should not retry automatically if the request fails due to a time out. Nevertheless, you can find out whether this is indeed the case by running your application with the context logging turned on. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
