When merging a large amount of small XTM files, the number of filedescriptors run out. The reason is that, currently, all files are opened before the first file is processed. This practically makes processing of a certain amount of files in one run impossible.
Logged In: YES
user_id=506885
Originator: YES
The solution works by delaying the actual opening of the underlying FileInputStream or URLInputStream up to the point the files are actually read and by hurrying up closing the underlying InputStream by closing directly after the last byte was read.
File Added: onDemandInputStreams.patch
This is a quick solution to the prescribed problem. It needs a little more cleanup.
Logged In: YES
user_id=506885
Originator: YES
Fixed in CVS.