Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Catalyst, FastCGI and fork

by Anonymous Monk
on Feb 11, 2013 at 03:44 UTC ( #1018088=note: print w/ replies, xml ) Need Help??


in reply to Catalyst, FastCGI and fork

I've read the FastCGI FAQ (http://www.fastcgi.com/docs/faq.html#Perlfork ) and it seems like thats what I need. But I can't find a way to get the FCGI::Request object.

IMHO, you don't really need that (if this old post http://stackoverflow.com/questions/2592157/whats-the-proper-way-to-fork-in-fastcgi is any indication of what you're doing )

Read Highlander: one instance at a time (Oct 00), Watching long processes through CGI (Aug 02), Proc::Background

So in your runmode parent, you brand / fork, and return a redirect response
in the child you disassociate completely, you don't return responses, you do the work, and you update the session/cache -- this should eliminate zombies


Comment on Re: Catalyst, FastCGI and fork

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018088]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-07 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls