aspen icon indicating copy to clipboard operation
aspen copied to clipboard

Rails raises a 'bad file descriptor' error when logging

Open kevwil opened this issue 14 years ago • 2 comments

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.

kevwil avatar Feb 04 '11 03:02 kevwil

Implemented a wrapper object for $stderr to ensure that close() is never called

kevwil avatar Feb 04 '11 05:02 kevwil

... 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.

kevwil avatar Feb 05 '11 19:02 kevwil