Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: How to pass AnyEvent socket handle to pre-forked child process?

by Corion (Pope)
on Jan 21, 2013 at 14:41 UTC ( #1014453=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to pass AnyEvent socket handle to pre-forked child process?
in thread How to pass AnyEvent socket handle to pre-forked child process?

If whatever you receive actually is a filehandle, or even better, a socket, then you need to maybe wrap it with an AnyEvent::Handle. Looking at AnyEvent::Beanstalk, I don't see how to pass sockets around with it though.


Comment on Re^3: How to pass AnyEvent socket handle to pre-forked child process?
Re^4: How to pass AnyEvent socket handle to pre-forked child process?
by michaelfung (Novice) on Jan 21, 2013 at 15:00 UTC

    Thanks Corion. But I just think of a different approach: use a tcp load balancer to distribute traffic to pre-forked children listening on different ports of localhost.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-10-23 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls