On Die, 11 Jan 2000, David Bear wrote:
> ---------code excerpt-----------
> --------- Platform: Linux, Perl 5.005_03, LWP 2.39
I believe the latest LWP version is 5.46, Parallel-UA is at 2.43 (and has
been there for a looong time -- it's about time I update it again, sorry).
Though I don't think that this is the problem. However, the version of
IO::Socket might be interesting. Which version are you using there?
> ## previously attempted to add $agent->use_eval(0) but that didn't fix the
> problem
What happened when you did this? Your program should have printed "Done"
and ended at some random times, no?
> $SIG{ALRM} = sub {
> if ($should_continue) {
> alarm(5);
> } else {
> die "timeout";
> }
> }
Hmm, have you tried putting in some small print statement here in order to
track the behavior of the program? Like "Alarm reset" and "Timeout" in
order to see if the SIGALRM is indeed called every five seconds?
> Most of the time this works properly, but as much as 20% of the time the
> requests will take a very long time to return--much longer than I'm
> specifying.
were you be able to single out specific sites that trigger this kind of
behavior?
-m
--
Marc Langheinrich
[EMAIL PROTECTED]