miyagawa/Plack — pull request #273 by pmakholm (2012-03-15 15:53:27+00:00)
Title: Proper support for callback-style streaming body in AccessLog::Timed

Plack::Middleware::AccessLog::Timed claims to log at the end of processing the request. But applications using the callback styled streaming body interface the request is logged at the start of the streaming when the writer callback is generated.

This means that neither the length nor the the time is correctly logged.

This patch seems to fix that (according to the added test cases)