rack/rack — pull request #468 by brucek (2012-12-14 09:16:28+00:00)
Title: Fix for issue 463

Fixes [issue 463](https://github.com/rack/rack/issues/463) Make sure we call close on the result bodies for any results dispatched onward. This was causing rack locks to never be released when apps returned 404/405 in the middle of the cascade (and may have also leaked file handlers similar to [issue 459](https://github.com/rack/rack/issues/459)).

Specifically, I was seeing these errors: (using Rails/rspec - to help future Googlers :-)

ThreadError:
thread 0x10251c270 tried to join itself