classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTPURLConnection.connect() buffers its entire input.


From: David Daney
Subject: HTTPURLConnection.connect() buffers its entire input.
Date: Thu, 08 Sep 2005 10:37:48 -0700
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720)

It seems the the current implementation of HTTPURLConnection.connect() buffers the entire response before returning.

Is that a correct analysis?

This can be problematical if the content is larger than the heap. It is even worse than that as it makes a copy of the content, so the content can only be half as large as the heap.

Does anyone know the rational behind doing it this way?

David Daney.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]