perlmonks12 has asked for the wisdom of the Perl Monks concerning the following question:
If the $socksserver is running a SOCKS server at port $sockspor it works great and very fast. But for example if at port $sockspor is running a HTTP proxy it takes VERY LONG to return. Like 4 minutes or so, and it's unacceptable. My idea to solve the problem is define a timeout like 10 seconds for Net::Socks connection, however there is no option at documentation and all my tests failed. Any solution please? Thank youmy $sock = new Net::SOCKS(socks_addr => $socksserver, socks_port => $s +ocksport, protocol_version => 5); my $con = $sock->connect(peer_addr => '10.1.1.3', peer_port => 23);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SOCKS how define timeout?
by ahmad (Hermit) on May 07, 2010 at 21:14 UTC | |
by perlmonks12 (Novice) on May 08, 2010 at 05:06 UTC | |
by Anonymous Monk on May 08, 2010 at 06:48 UTC | |
by samarzone (Pilgrim) on May 08, 2010 at 08:20 UTC | |
by perlmonks12 (Novice) on May 08, 2010 at 18:31 UTC | |
by choroba (Cardinal) on May 08, 2010 at 18:39 UTC | |
by perlmonks12 (Novice) on May 08, 2010 at 18:03 UTC | |
by choroba (Cardinal) on May 08, 2010 at 18:27 UTC | |
by perlmonks12 (Novice) on May 08, 2010 at 20:27 UTC | |
by perlmonks12 (Novice) on May 08, 2010 at 18:25 UTC |