Details
Description
When doing a massive uploading of blobs with activemq 5.2 (same thing on svn trunk) on the embedded RESTful fileserver, you get a "too many open files" error and the system doesn't work anymore.
Steps to reproduce :
- send a BlobMessage with "jms.blobTransferPolicy.uploadUrl=http://127.0.0.1:8161/fileserver/"
- use "lsof |grep fileserver" command and you will see your uploaded BLOB still open
The fix seems really easy (works ok for me) :
- open "RestFilter.java"
- locate the "doPut()" method
- change :
try { IO.copy(request.getInputStream(), out); } catch (IOException e) {
with :
try { IO.copy(request.getInputStream(), out); out.close(); } catch (IOException e) {