Skip to content

Conversation

@ianburrell
Copy link

FCGI::Engine::PSGI doesn't support the psgix.harakiri extension to allow app to request server to exit (usually to restart).

I added an empty cleanup_request method to handle the cleanup, but it might make sense to move the block inside while loop into method and do "after" or "around" modifier on that.

Also, FCGI::Engine should call FCGI::Request::Finish before post_dispatch. The FCGI::Request gets finished the next time around the loop, but that doesn't cleanup nicely if process exits.

@ianburrell ianburrell force-pushed the psgi-harakiri branch 2 times, most recently from 798944a to 784e893 Compare January 11, 2016 22:01
Ian Burrell added 2 commits January 11, 2016 14:30
Refactor process_request to support running code after finishing request
Pass proc_manager to prepare_environment
@ianburrell
Copy link
Author

I changed the implementation. Instead of having cleanup_request method, I moved everything inside loop into process_request and used "around" (after would also work) in FCGI::Engine::PSGI to change behavior.

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.

1 participant