SVN: toys/rsget.pl/RSGet/Curl.pm
sparky
sparky at pld-linux.org
Fri Mar 4 03:33:26 CET 2011
Author: sparky
Date: Fri Mar 4 03:33:26 2011
New Revision: 12187
Modified:
toys/rsget.pl/RSGet/Curl.pm
Log:
- better dead-interface detection
Modified: toys/rsget.pl/RSGet/Curl.pm
==============================================================================
--- toys/rsget.pl/RSGet/Curl.pm (original)
+++ toys/rsget.pl/RSGet/Curl.pm Fri Mar 4 03:33:26 2011
@@ -501,7 +501,7 @@
#warn "error($err): $error\n";
$get_obj->linecolor( "red" );
$get_obj->print( "ERROR($err): $error" ) if $err ne "aborted";
- if ( $error =~ /Couldn't bind to '(.*)'/ or $error =~ /bind failed/ ) {
+ if ( $error =~ /Couldn't bind to '|bind failed|Could not resolve host:|Connection timed out after \d+ milliseconds/ ) {
my $if = $get_obj->{_outif};
RSGet::Dispatch::remove_interface( $if, "Interface $if is dead" );
$get_obj->{_abort} = "Interface $if is dead";
More information about the pld-cvs-commit
mailing list