Since all the problems seem to happen on the 2nd+ calls, I tried to replace all mech calls with new/call/undef's. So instead of starting 1 mech and doing lots of get()s I am doing:
$www=WWW::Mechanize::Firefox->new() $www->events() $www->get() undef $www
Strangely enough, this change seems to do nothing at all to change the _wait_while_busy hang behaviour! Well, it did one thing, the very first callback call took only 0 sec. Very strange. I'm reverting back to my old code which makes only 1 call to w:m:ff->new().
I should note that I am doing nothing with these pages I'm loading. I'm not filling in forms, or doing other mech stuff. I'm just get()ing, running some regexes on the content()s and then doing a saveurl() of a related file and on to the next get().
I also tried adding this to the wait while loop, to no effect: $self->repl->poll;
In reply to Re^6: WWW::Mechanize::Firefox delayed returns / slow
by tcordes
in thread WWW::Mechanize::Firefox delayed returns / slow
by tcordes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |