in reply to Re^5: WWW::Mechanize::Firefox delayed returns / slow
in thread WWW::Mechanize::Firefox delayed returns / slow
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: WWW::Mechanize::Firefox delayed returns / slow
by Corion (Patriarch) on Dec 03, 2010 at 12:47 UTC | |
by mascip (Pilgrim) on Apr 09, 2014 at 16:22 UTC | |
by Corion (Patriarch) on Apr 09, 2014 at 17:26 UTC | |
by mascip (Pilgrim) on Apr 10, 2014 at 09:22 UTC | |
by Corion (Patriarch) on Apr 10, 2014 at 09:56 UTC | |
|