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

Reply via email to