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

foxr lon-capa-cvs@mail.lon-capa.org
Tue, 26 Aug 2003 09:19:51 -0000


foxr		Tue Aug 26 05:19:51 2003 EDT

  Modified files:              
    /loncom	loncnew 
  Log:
  How embarrassing... put in the SocketTimeout function in loncnew and forgot
  to actually hook it into the LondTransaction.  Added this to MakeLondConnection
  where it belongs... hopefully transactions (not just connection attempts) will
  timeout more speedily than the socket errors will catch it.
  
  
  
Index: loncom/loncnew
diff -u loncom/loncnew:1.20 loncom/loncnew:1.21
--- loncom/loncnew:1.20	Mon Aug 25 14:48:11 2003
+++ loncom/loncnew	Tue Aug 26 05:19:51 2003
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # lonc maintains the connections to remote computers
 #
-# $Id: loncnew,v 1.20 2003/08/25 18:48:11 albertel Exp $
+# $Id: loncnew,v 1.21 2003/08/26 09:19:51 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -45,6 +45,12 @@
 
 # Change log:
 #    $Log: loncnew,v $
+#    Revision 1.21  2003/08/26 09:19:51  foxr
+#    How embarrassing... put in the SocketTimeout function in loncnew and forgot
+#    to actually hook it into the LondTransaction.  Added this to MakeLondConnection
+#    where it belongs... hopefully transactions (not just connection attempts) will
+#    timeout more speedily than the socket errors will catch it.
+#
 #    Revision 1.20  2003/08/25 18:48:11  albertel
 #    - fixing a forgotten ;
 #
@@ -1094,7 +1100,8 @@
 	    &Debug(9,"MakeLondConnection got socket: ".$Socket);
 	}
 	
-	
+	$Connection->SetTimeoutCallback(\&SocketTimeout);
+
 	$event = Event->io(fd       => $Socket,
 			   poll     => 'w',
 			   cb       => \&LondWritable,