hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24560] - HttpClient loops endlessly while trying to retrieve status line
Date Wed, 10 Dec 2003 14:44:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24560

HttpClient loops endlessly while trying to retrieve status line





------- Additional Comments From ck@rrzn.uni-hannover.de  2003-12-10 14:44 -------
Oleg, 
 
IMHO, if a specific thrown Exception is regarded as part of some 
normal/tolerable behaviour, it is safe to ignore that Exception 
(even without logging). 
 
This seems to be the case here! 
Our potential IOException is basically thrown by InputStream.available(), 
which means that there was a problem with retrieving the number of 
readable bytes from the stream. 
 
The exact reason for this problem does not matter. The IOException is 
a reliable signal for HttpClient that the HTTP connection should not be 
reused. 
 
By the way, the following two methods also silently ignore Exceptions. 
Do you think that this behaviour needs to be changed? 
HttpConnection.shutdownOutput() 
HttpConnection.closeSocketAndStreams() 
 
 
Christian

---------------------------------------------------------------------
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