in reply to Re^2: LWP::Parallel in other way
in thread LWP::Parallel in other way

Oh come on, you're not even trying. Which part of the code is responsible downloading (HTTP request)?

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^4: LWP::Parallel in other way
by 2ge (Scribe) on Nov 01, 2004 at 22:00 UTC
    Hello PodMastah,

    I just found the weak place in my script,
    $entries = $pua->wait();
    should be in the same loop, where I register agent! Thanks for pointing me. Now everything works fine, I guess:)
Re^4: LWP::Parallel in other way
by 2ge (Scribe) on Nov 01, 2004 at 22:44 UTC
    heloo again

    I was wrong in previous reply. If I put $pua->wait(); there, it is same as LWP::Simple (no paralel). I try to tweak it, but no success (creating another loop, with $pua->agent("$agents[$counter_2]"); $pua->wait();.
    You changed my code, so it works now? If not, just try. I have no idea, why it is not working at me, really. Please help.
      You changed my code, so it works now? If not, just try. I have no idea, why it is not working at me, really. Please help.
      All right. wait is not responsible for actualy making the request. How do I know?

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        hello PodMaster !!!

        thanks for reply, I read 5 times your post, but I don't know what I should change in my script. I'm scripting in perl around 6 months, so I am not so good in debugging. Also I thought about that, it is not possible what I want in LWP::Parallel, maybe better is use more processes, but I 'm not sure. I thought LWP:P will be easier to use (I used it without no problems with the same UA). So, if you please could write me, what I should change in my code. Thanks.

        --
        Brano