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?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |