DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31246>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31246

JVM bug 4949631 causes BufferOverflowException in 
HttpMethodBase.getResponseBodyAsString





------- Additional Comments From [EMAIL PROTECTED]  2004-09-16 11:57 -------
Alan,

The method works perfectly for large responses. You have already discoverd that
the problem is inside Sun's VM implementation. If you use any other VM (Sun
1.3.1, any IBM, any Blackdown) there is no bug. HttpClient is not broken.
Nothing to fix here.

We are not going to work around Sun's bugs at the HttpClient level as long as
there exists a simple workaround feasible for the user. e.g. using streams.

I also don't like your idea of an ResponseTooLargeException. It is perfectly
legal, although not very intelligent, to use getResponseAsString for
multimegabyte responses.

I guess that at least API Doc improvements should be made to that method. But
this has nothing to do with Sun's VM bug. It should rather push users towards
using streams instead of buffered responses. A warning message could further
help developers but I find it completely optional. I will attach a patch for
that in a minute.

Ortwin Glück

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to