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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 15 Dec 2003 23:30:57 -0000


albertel		Mon Dec 15 18:30:57 2003 EDT

  Modified files:              
    /loncom	loncnew 
  Log:
  - I am seeing negative Connection Counts, (BUG#2502) Forcing it to zero if this happens.
  
  
  
Index: loncom/loncnew
diff -u loncom/loncnew:1.35 loncom/loncnew:1.36
--- loncom/loncnew:1.35	Fri Dec 12 04:57:28 2003
+++ loncom/loncnew	Mon Dec 15 18:30:57 2003
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # lonc maintains the connections to remote computers
 #
-# $Id: loncnew,v 1.35 2003/12/12 09:57:28 foxr Exp $
+# $Id: loncnew,v 1.36 2003/12/15 23:30:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -657,7 +657,7 @@
 	delete($ActiveConnections{$Socket});
     }
     $ConnectionCount--;
-
+    if ($ConnectionCount < 0) { $ConnectionCount = 0; }
     #  If the connection count has gone to zero and there is work in the
     #  work queue, the work all gets failed with con_lost.
     #