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 31246] - JVM bug 4949631 causes BufferOverflowException in HttpMethodBase.getResponseBodyAsString
Date Wed, 15 Sep 2004 15:41:35 GMT
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 ortwin.glueck@nose.ch  2004-09-15 15:41 -------
We strongly discourage users to use getResponseBodyAsString if the content is
large. getResponseBodyAsString imposes buffering and copying the data in the VM
which can easily exhaust the memory available to the VM. HttpClients should
avoid buffering the response by using getResponseBodyAsStream().

Maybe we can log a warning message, if the content length is unknown or larger
than some megs and the user calls getResponseBodyAsString or getResponseBody.
The drawbacks of calling those methods and why to alternatives should be
documented in the API.

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