Re: Problem to execute "sidecar" Perl scripts when compiling POE::Component::Resolver with PAR

Rocco Caputo <[email protected]> Wed, 18 May 2011 08:29:32 -0400
Newsgroups gmane.comp.lang.perl.poe,gmane.comp.lang.perl.par
Message-ID <[email protected]>
On May 17, 2011, at 11:48, Markus Jansen wrote:
>  
> Another but smaller problem is that I have not seen an easy way to tell POE::Component::Resolver all the way down
> from POE::Compoent::Client::HTTP that I would like to see less than 8 subprocesses for the resolver job.

Hi, Markus.

The entire POE::Component::Client::HTTP stack is customizable by configuring your own objects and passing them in, but it looks like I've forgotten to document everything.

Something like this should work:

POE::Component::Client::HTTP->spawn(
  ConnectionManager => POE::Component::Client::Keepalive->new(
    resolver => POE::Component::Resolver->new(
      max_resolvers => 2,
    )
  )
);

-- 
Rocco Caputo <[email protected]>