shengt/nodejs-SimpleHTTPServer — pull request #1 by kaueraal (2012-08-14 17:24:43+00:00)
Title: nodjs-SimpleHTTPServer: Files are now loaded and sent in chunks

Files now are loaded and sent in chunks, which gives two advantages:
- Smaller memory footprint, as only about one small part of the file has to reside in memory (especially important for files > 1 gb)
- Sending starts earlier, because the file doesn't need to be completely loaded from disk before sending

Although I'm using responses' drain event rather then sending the whole file as a block I wasn't able to measure a drop in speed, so there shouldn't be a noticeable impact on speed.

+ some small bugfixes