Please sign in to comment.
Rack::BodyProxy should execute block even on failures.
In general, Rack frameworks are moving logic to close hooks in order to support async behavior increasing the chance an exception will happen on close. Most servers will actually die if there is an exception on close, but such exceptions can also happen in the test environment. In such cases, we can accidentally leave a mutex locked, a database connection not collected and so forth, therefore, we need to ensure the block is called regardless closing the body failed.
- Loading branch information...
Showing with 22 additions and 2 deletions.