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

www lon-capa-cvs@mail.lon-capa.org
Wed, 03 Apr 2002 17:44:51 -0000


www		Wed Apr  3 12:44:51 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Do not wait for connections to non-existing hosts
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.204 loncom/lonnet/perl/lonnet.pm:1.205
--- loncom/lonnet/perl/lonnet.pm:1.204	Fri Mar 29 13:23:50 2002
+++ loncom/lonnet/perl/lonnet.pm	Wed Apr  3 12:44:50 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.204 2002/03/29 18:23:50 albertel Exp $
+# $Id: lonnet.pm,v 1.205 2002/04/03 17:44:50 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -137,6 +137,7 @@
 
 sub reply {
     my ($cmd,$server)=@_;
+    unless (defined($hostname{$server})) { return 'no_such_host'; }
     my $answer=subreply($cmd,$server);
     if ($answer eq 'con_lost') {
        sleep 5;