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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 03 Sep 2002 02:01:14 -0000


albertel		Mon Sep  2 22:01:14 2002 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - foxr keepalive suggestion to fix flackyness in lond
  
  
Index: loncom/lond
diff -u loncom/lond:1.93 loncom/lond:1.94
--- loncom/lond:1.93	Mon Aug 26 10:30:53 2002
+++ loncom/lond	Mon Sep  2 22:01:14 2002
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.93 2002/08/26 14:30:53 albertel Exp $
+# $Id: lond,v 1.94 2002/09/03 02:01:14 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -501,6 +501,8 @@
 # =============================================================================
             # do something with the connection
 # -----------------------------------------------------------------------------
+	    $client->sockopt(SO_KEEPALIVE, 1);# Enable monitoring of
+	                                      # connection liveness.
             # see if we know client and check for spoof IP by challenge
             my $caller=getpeername($client);
             my ($port,$iaddr)=unpack_sockaddr_in($caller);