aspen
aspen copied to clipboard
Rails raises a 'bad file descriptor' error when logging
I suspect the "rack.errors" value is getting closed prematurely. I think I'm passing a reference to $stderr, just like Webrick and Mongrel, but something's not quite right.
Implemented a wrapper object for $stderr to ensure that close() is never called
... and that still didn't fix it. Rails2.x is returning a bad response (status is not an integer >= 100) and Rails3 is throwing the "bad file descriptor" error.