--- loncom/loncnew 2004/06/17 10:15:46 1.48 +++ loncom/loncnew 2004/06/17 22:37:06 1.49 @@ -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 $RecentLogEntry = ""; 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 @@ sub Tick { 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 @@ sub Tick { } } + if ($ConnectionCount == 0) { + $KeyMode = ""; + } } =pod @@ -387,6 +392,7 @@ long enough, it will be shut down and re sub ServerToIdle { my $Socket = shift; # Get the socket. + $KeyMode = $Socket->{AuthenticationMode}; delete($ActiveTransactions{$Socket}); # Server has no transaction &Debug(5, "Server to idle");