miyagawa/Twiggy

Connection is not closed correctly with Catalyst apps

Closed this issue · 2 comments

Create a default Catalyst app and run it with plackup scripts/app.psgi -s AnyEvent

telnet to get the page, and the connection is not closed. It'd cause issues with IE6.

This doesn't happen with a simple PSGI app.

If you comment out psgi.input => $sock from AnyEvent.pm this doesn't happen, so something is preventing $sock from being cleaned up?

This was a bug in Catalyst::Engine::PSGI -- it was holding a reference to $env from a persistent Engine object.