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

foxr lon-capa-cvs@mail.lon-capa.org
Thu, 17 Jun 2004 22:37:07 -0000


foxr		Thu Jun 17 18:37:07 2004 EDT

  Modified files:              
    /loncom	loncnew 
  Log:
  Add connection authmode type to status.
  
  
  
Index: loncom/loncnew
diff -u loncom/loncnew:1.48 loncom/loncnew:1.49
--- loncom/loncnew:1.48	Thu Jun 17 06:15:46 2004
+++ loncom/loncnew	Thu Jun 17 18:37:06 2004
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # lonc maintains the connections to remote computers
 #
-# $Id: loncnew,v 1.48 2004/06/17 10:15:46 foxr Exp $
+# $Id: loncnew,v 1.49 2004/06/17 22:37:06 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -103,6 +103,7 @@
 my $ConnectionRetries=2;	# Number of connection retries allowed.
 my $ConnectionRetriesLeft=2;	# Number of connection retries remaining.
 my $LondVersion     = "unknown"; # Version of lond we talk with.
+my $KeyMode         = "";       # e.g. ssl, local, insecure from last connect.
 
 #
 #   The hash below gives the HTML format for log messages
@@ -292,7 +293,8 @@
     my $client;
     if($ConnectionRetriesLeft > 0) {
 	ShowStatus(GetServerHost()." Connection count: ".$ConnectionCount
-		   ." Retries remaining: ".$ConnectionRetriesLeft);
+		   ." Retries remaining: ".$ConnectionRetriesLeft
+		   ." ($KeyMode)");
     } else {
 	ShowStatus(GetServerHost()." >> DEAD <<");
     }
@@ -347,6 +349,9 @@
 	}
        
     }
+    if ($ConnectionCount == 0) {
+	$KeyMode = ""; 
+    }
 }
 
 =pod
@@ -387,6 +392,7 @@
 
 sub ServerToIdle {
     my $Socket   = shift;	# Get the socket.
+    $KeyMode = $Socket->{AuthenticationMode};
     delete($ActiveTransactions{$Socket}); # Server has no transaction
 
     &Debug(5, "Server to idle");