writer_thread_*: fix static file response under 1.8
commit5a0a190253434d3eef5332d979d56f3e16e876bd
authorEric Wong <normalperson@yhbt.net>
Thu, 3 Jun 2010 21:55:37 +0000 (3 14:55 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 3 Jun 2010 22:26:01 +0000 (3 15:26 -0700)
tree23fc4e136eafe0688260bebc27c4d05fc5c26512
parentb6e354116d4da5c7c6de59f87ab5815f21e202ed
writer_thread_*: fix static file response under 1.8

While these models are designed to work with IO.copy_stream
under Ruby 1.9, it should be possible to run them under Ruby
1.8 without returning corrupt responses.  The large file
response test is beefed up to compare SHA1 checksums of
the served file, not just sizes.
lib/rainbows/writer_thread_pool.rb
lib/rainbows/writer_thread_spawn.rb
t/t0005-large-file-response.sh