Re: help with POE::Component::Client::HTTP
Aaron Goodmiller <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Fantastic! This worked like a charm! Thanks much. Now if I can just figure out why my script runs twice when called through a web browser I'll be all set! :) Thanks again Michael, you're a life saver! Thanks, Aaron On Nov 20, 2009, at 1:50 AM, Michael Lackhoff <[email protected]> wrote: > On 20.11.2009 04:03 Aaron Goodmiller wrote: > >> I am using the POE::Component::Client::HTTP part of POE to call 4 >> URLs >> simultaneously. This works really well, except for the fact that >> there is >> either a 5 second lag or a 43 second lag from the last URL pulled. >> No >> matter what I set the keepalive or timeout too, it is always either >> 5 or 43 >> seconds (every once in a while 86 seconds, but that is about 1 out >> of a >> hundred times). > > I had a similar problem a few weeks ago (see the list archives) and > came > up with something like this within the loop over the URLs: > > if (@what_we_got_already == @urls) { # everything done > $kernel->post(ua => 'shutdown' ); > } > > hth > -Michael