node-js-libs / node.io

MIT License
1.8k stars 140 forks source link

file descriptors do not close using write method #160

Closed aarsakian closed 9 years ago

aarsakian commented 11 years ago

I was running out of available file descriptors while parsing and saving massively to files. This behavior was gone after I closed the WriteStream(), Specifically I added at line 411 of lib/node.io/io.js the following: self.output_streams[file].end()

I do not know if this is error or bad usage of apis since I am new to node.js ecosystem.

chriso commented 11 years ago

This is likely a bug. The stream API has changed significantly since I wrote the library (which was somewhere around node v0.4)