event_machine: avoid redundant open() for static files
commit015daa81f26afc59d1da857b8bbedfb80eb532b1
authorEric Wong <normalperson@yhbt.net>
Tue, 20 Jul 2010 05:18:48 +0000 (20 05:18 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 20 Jul 2010 05:21:32 +0000 (20 05:21 +0000)
tree58e2feb479ac97e7733204ccd82889640bcf09d9
parentafb7e51363c646751be1a12083c1c7b184e3fd47
event_machine: avoid redundant open() for static files

This is cheaper for serving static files and only
slightly more expensive for pipes and sockets (extra
path lookup for File.stat).
lib/rainbows/event_machine.rb