ensure file response bodies are properly closed
commit60039518e03b0f1a0f530eefe008ebf72c55afe4
authorEric Wong <normalperson@yhbt.net>
Mon, 19 Jul 2010 10:10:06 +0000 (19 10:10 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 20 Jul 2010 00:04:37 +0000 (19 17:04 -0700)
treec31a8ff013634812ae71f7c935d309c652d5052a
parent0cd65fa1e01be369b270c72053cf21a3d6bcb45f
ensure file response bodies are properly closed

Middlewares like Clogger may wrap Rack::File responses
with another body that responds to to_path and still
rely on #close to trigger an action (writing out the log
file).
lib/rainbows/event_machine.rb
lib/rainbows/rev/client.rb
lib/rainbows/rev/sendfile.rb
lib/rainbows/stream_file.rb
t/file-wrap-to_path.ru [new file with mode: 0644]
t/t0021-sendfile-wrap-to_path.sh [new file with mode: 0644]