Ops, i forgot to state:

This is running under mod_perl, is it the quickest solution to use
LWP::Parallel, this is to build a MetaSearch Engine... currently we use a
Thunderstone progam (www.thunderstone.com), however it starts a process per
request, even though it runs VERY quickly... I am afraid that if high
traffic comes in the program will fail... (Currently at 3,000+ searches/day)



  _____

Roy Nasser ( [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> )
Diretor T�cnico
http://Vem.ca/ <http://ww.Vem.ca/>
+55-11-3347-3011
+55-11-9953-8853 (Cel.)
+55-11-211-0889 (Fax.)
  _____




> -----Original Message-----
> From: Roy Nasser [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 14, 2000 5:29 PM
> To: [EMAIL PROTECTED]
> Subject: Parallel Help
>
>
> Is there a special list for ParallelUI?
>
> If not, here is my question:
>
> I am using the following code:
>
> <cut>
> foreach $current (keys %URL){
>     $req = HTTP::Request->new('GET', $URL{$current});
>     $pua->register ($req, \&handle_answer);
> }
> </cut>
>
> However this runs handle_answer sub as soon as any data comes back, and i
> would like it to run as soon as all the data arrives... Is this possible?
>
> Also, is it possible to pass in another variable to handle_answer?
>
> Like:
>
> <cut>
> foreach $current (keys %URL){
>     $req = HTTP::Request->new('GET', $URL{$current});
>     $pua->register ($req, \&handle_answer($current));
> }
> </cut>
>
> but by default the sub called by register already returns some
> things, such
> as content, response, code, etc... how would i read an additional
> variable?
>
> Thank you very much for the help!
>
>
>
> Roy Nasser ([EMAIL PROTECTED])
> Diretor T�cnico
> http://Vem.ca/
> +55-11-3347-3011
> +55-11-9953-8853 (Cel.)
> +55-11-211-0889 (Fax.)
>
>
>
>

Reply via email to