Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup patches #1

Merged
merged 3 commits into from
May 25, 2011
Merged

Cleanup patches #1

merged 3 commits into from
May 25, 2011

Conversation

stromnet
Copy link
Contributor

Hi,

I've patched the FastCGI PoCo a bit, mainly two changes:

  • Expose a public 'shutdown' event to allow for proper cleanup of the listener socket
  • Fix to make sure we deal with wheels from the correct session.

More details are in the commit msgs. Noticed the session-thing when I ran my app with options => {default => 1} (which I usually always do).

Please take a look at them and if you think they're good, please push to CPAN repo.

Cheers
Johan

Also added dummy _stop/_child methods to avoid warnings.
…leanup.

If a event callback was used, and the external session called
write/send/close, the wheel was beeing worked on from the wrong session.
For regular write this was not a problem, but when registering
the FlushedEvent, the 'shutdown' event was sent to the wrong session.
This yielded a non-free'ed wheel.
Also forcibly remove circual references on cleanup, DESTROY get's called
as it should now.
@bingos bingos merged commit 2d2994a into bingos:master May 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants