Project

General

Profile

Story #6494

Updated by Rob Nahf over 9 years ago

buffering input streams inputstreams into byte arrays bytearrays to close remote input streams inputstreams creates an unmanaged situation where a large data object can cause out-of-memory out of memory / heap errors. This is bad because application developers who use libclient have to pass on this weakness to their customers. errors).

The solution is want to avoid buffering, but also wrap the inputstream with use AutoClosingInputStream to prevent accidental input streams being left open and tying up connections.

The buffering LocalCache imposes is potentially dangerous as well and needs a workaround, both for v1.x and v2.x.
instead.

Back

Add picture from clipboard (Maximum size: 14.8 MB)