Ruby 1.9 bug with Linux + large static files on 32-bit

Eric Wong normalperson at
Fri Jun 25 22:39:17 EDT 2010

Hi all,

Since Rainbows! 0.92.0, static file serving performance was improved
under Linux (and possibly Solaris) under 1.9 by using IO.copy_stream.

Unfortunately, I've noticed large files (>4G) can get truncated.
(2-4G files just end up falling back to a read+write loop in C).

There's a trivial patch for the issue here:

Eric Wong

More information about the rainbows-talk mailing list