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

foxr lon-capa-cvs@mail.lon-capa.org
Tue, 02 Dec 2003 10:37:59 -0000


foxr		Tue Dec  2 05:37:59 2003 EDT

  Modified files:              
    /loncom	lond 
  Log:
  Add shutdown to exit processing to ensure that the socket is promptly cleaned
  up.
  
  
Index: loncom/lond
diff -u loncom/lond:1.163 loncom/lond:1.164
--- loncom/lond:1.163	Mon Nov 17 04:32:17 2003
+++ loncom/lond	Tue Dec  2 05:37:59 2003
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.163 2003/11/17 09:32:17 foxr Exp $
+# $Id: lond,v 1.164 2003/12/02 10:37:59 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -52,7 +52,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.163 $'; #' stupid emacs
+my $VERSION='$Revision: 1.164 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid;
 my $currentdomainid;
@@ -2500,6 +2500,7 @@
 		    &logthis(
 			     "Client $clientip ($clientname) hanging up: $userinput");
 		    print $client "bye\n";
+		    $client->shutdown(2);        # shutdown the socket forcibly.
 		    $client->close();
 		    last;