metabahn/pakyow — comment on commit 2f00c27006f39ad14bd3e498479f3b52580c5947
File:  line 0
By bryanp:

This fixes the blank page problem introduced by the static middleware. What was happening was the middleware was calling send_file on the app, which interrupts and sets the interrupted flag to true. On the next request the flag was still set to true because it wasn't being reset.

I'm starting to see a need to rethink process interruption (like I think was discussed some today). If we had a queue of things to process, interrupt would just remove the thing at the top. In the case where there was nothing there it would just continue on. I think that would have kept this problem from happening.