[LON-CAPA-cvs] cvs: loncom / lond

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 28 Mar 2007 22:46:44 -0000


albertel		Wed Mar 28 18:46:44 2007 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - stop causing a flog of reconlonc when a new client connects
  
  
Index: loncom/lond
diff -u loncom/lond:1.366 loncom/lond:1.367
--- loncom/lond:1.366	Wed Mar 28 18:27:51 2007
+++ loncom/lond	Wed Mar 28 18:46:44 2007
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.366 2007/03/28 22:27:51 albertel Exp $
+# $Id: lond,v 1.367 2007/03/28 22:46:44 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.366 $'; #' stupid emacs
+my $VERSION='$Revision: 1.367 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -5556,12 +5556,8 @@
 	if ($clientok) {
 # ---------------- New known client connecting, could mean machine online again
 	    
-	    foreach my $id (keys(%hostip)) {
-		if ($hostip{$id} ne $clientip ||
-		    $hostip{$currenthostid} eq $clientip) {
-		    # no need to try to do recon's to myself
-		    next;
-		}
+	    if ($hostip{$currenthostid} ne $clientip 
+		&& $clientip ne '127.0.0.1') {
 		&Apache::lonnet::reconlonc();
 	    }
 	    &logthis("<font color='green'>Established connection: $clientname</font>");