Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
Replies are listed 'Best First'.
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 browsing the Monastery: (20)
As of 2015-07-07 20:56 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 (93 votes), past polls