Unfortunately I don't have the code in front of me at the moment. I think it will be an HttpRecoverableException (for HttpClient 2.0). If you set a very low timeout (~1ms) you should be able to test this quite easily.
Mike
McMahon, Joseph wrote:
Ok, do you know what exception? I'd rather not do a generic Exception catch for this issue.
Thanks
-----Original Message-----
From: Michael Becke [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 12:43 PM
To: Commons HttpClient Project
Subject: Re: Timeout exception
Hi Joe,
Read timeouts will cause exceptions to be thrown from within HttpMethod.execute().
Mike
McMahon, Joseph wrote:
I have a client program that uses the MultiThreadedHttpConnectionManager
and
after a while, it seems like the connections "hang". I haven't traced anything yet to know the wire state of the connection, but as I read
through
the archives here, I saw that people use the setTimeout to create a
timeout
on reading data. Does this cause an exception to be thrown or a specific
return value from the <method>.execute() method??
Thanks,
Joe
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]