Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 lurking in the Monastery: (10)
As of 2014-10-20 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls