michaelfung has asked for the wisdom of the Perl Monks concerning the following question:
I need to handle thousands of concurrent TCP connections. I use AnyEvent/EV. In order to take advantage of multiple CPUs, I pre-forked some children and pass them client socket handles. I pass the handles with AnyEvent::Beanstalk, when the child receives it, it complains it is not an AnyEvent Handle. I tried to use Storable to serialize the handle before passing but to no avail.
So, is this pre-fork approach practical at all with perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to pass AnyEvent socket handle to pre-forked child process?
by zwon (Abbot) on Jan 21, 2013 at 12:05 UTC | |
by Corion (Patriarch) on Jan 21, 2013 at 12:51 UTC | |
by zwon (Abbot) on Jan 23, 2013 at 15:04 UTC | |
by michaelfung (Novice) on Jan 21, 2013 at 14:34 UTC | |
by Corion (Patriarch) on Jan 21, 2013 at 14:41 UTC | |
by michaelfung (Novice) on Jan 21, 2013 at 15:00 UTC | |
by zwon (Abbot) on Jan 23, 2013 at 14:57 UTC | |
by michaelfung (Novice) on Jan 25, 2013 at 07:56 UTC |