[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Tue Jun 24 20:55:27 EDT 2014


raeburn		Wed Jun 25 00:55:27 2014 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Reverse lexical sort so s10.lite.msu.edu is first "DNS" server contacted
    in production cluster.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1262 loncom/lonnet/perl/lonnet.pm:1.1263
--- loncom/lonnet/perl/lonnet.pm:1.1262	Fri Jun 13 03:33:55 2014
+++ loncom/lonnet/perl/lonnet.pm	Wed Jun 25 00:55:26 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1262 2014/06/13 03:33:55 raeburn Exp $
+# $Id: lonnet.pm,v 1.1263 2014/06/25 00:55:26 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -11806,7 +11806,7 @@
 	$alldns{$host} = $protocol;
     }
     while (%alldns) {
-	my ($dns) = keys(%alldns);
+	my ($dns) = sort { $b cmp $a } keys(%alldns);
 	my $ua=new LWP::UserAgent;
         $ua->timeout(30);
 	my $request=new HTTP::Request('GET',"$alldns{$dns}://$dns$url");




More information about the LON-CAPA-cvs mailing list