hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Timeout exception
Date Wed, 03 Mar 2004 17:55:33 GMT
Hi Joe,

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:becke@u.washington.edu] 
> 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:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message