Affects Version/s: None
Fix Version/s: JRuby 1.7.0.pre1
Number of attachments :
The getInputStream method of LoadServiceResource, only when constructed with a URL, leaks via a call to resource.openStream().
Because LoadServiceInputStream completely buffers the contents of the InputStream passed to it, you can close the InputStream created from resource.openStream() after constructing the new LoadServiceInputStream. There may be a better solution, but we've been using this workaround in a custom NonLeakingLoadServiceResource in TorqueBox for several months and it seems to work fine.
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Assignee||Thomas E Enebo [ enebo ]||Charles Oliver Nutter [ headius ]|
|Fix Version/s||JRuby 1.7 [ 17049 ]|
|Resolution||Fixed [ 1 ]|