in reply to Re^2: WWW::Mechanize::Firefox and Net::Telnet timeout
in thread WWW::Mechanize::Firefox and Net::Telnet timeout

This is weird and I don't know where that timeout comes from. Maybe it really is Firefox timing out as it is busy synchronously fetching some result. As you see in the trace, WWW::Mechanize::Firefox polls every second (or so) to see whether Firefox has fetched a page.

If it really is Net::Telnet, then you'll have to dive down:

$mech->repl->repl->client->{telnet}->timeout($new_timeout);

Replies are listed 'Best First'.
Re^4: WWW::Mechanize::Firefox and Net::Telnet timeout
by OlegG (Monk) on Apr 27, 2011 at 16:52 UTC
    $mech->repl->repl->client->{telnet}->timeout($new_timeout);
    Thanks a lot, it helped. There are no timeout errors now.
Re^4: WWW::Mechanize::Firefox and Net::Telnet timeout
by Anonymous Monk on Feb 20, 2012 at 08:44 UTC
    hello dear all s

    the same here:
    If it really is Net::Telnet, then you'll have to dive down:
    $mech->repl->repl->client->{telnet}->timeout($new_timeout);


    so the question is: do i need the Net::Telnet: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm



    What i have tried allready; here it is:


    #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize::Firefox; my $mech = new WWW::Mechanize::Firefox(); open(INPUT, "<urls.txt") or die $!; while (<INPUT>) { chomp; print "$_\n"; $mech->get($_); my $png = $mech->content_as_png(); my $name = "$_"; $name =~s/^www\.//; $name .= ".png"; open(OUTPUT, ">$name"); print OUTPUT $png; sleep (5); }



    Well this does not care about the size:
    See the output commandline:
    linux-vi17:/home/martin/perl # perl mecha_test_1.pl www.google.com www.cnn.com www.msnbc.com command timed-out at /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm + line 186 linux-vi17:/home/martin/perl #



    This is my source ... see a snippet exampleof the sites i have in the url-list

    www.google.com www.cnn.com www.msnbc.com news.bbc.co.uk www.bing.com www.yahoo.com



    f it really is Net::Telnet, then you'll have to dive down:
    $mech->repl->repl->client->{telnet}->timeout($new_timeout);


    so the question is: do i need the Net::Telnet: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm

    what do you say!? Do i need it!?

      Your question has nothing to do with the problem talked about here. This thread is about getting a timeout. As far as I am aware you are struggling with using the right version of Perl and getting WWW::Mechanize::Firefox installed at all, not with getting a timeout in some specific situation.

      Net::Telnet is needed by MozRepl which is needed by MozRepl::RemoteObject which is needed by WWW::Mechanize::Firefox.

      I recommend you attend a course on Perl and on Perl modules. Please stop trying nonsensical things and try to learn the concepts of Perl and Perl modules before trying to proceed further with WWW::Mechanize::Firefox.

      corion i postet this as looged out by accident i am sure you can help here.... guess so! greetings

      what do you say!? Do i need it!?

      You're a scarecrow, you need a brain