[LON-CAPA-cvs] cvs: loncom / lonc
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 24 Feb 2003 19:56:30 -0000
albertel Mon Feb 24 14:56:30 2003 EDT
Modified files:
/loncom lonc
Log:
- timeouts are bad, kill the child off and hope for something better on restart
Index: loncom/lonc
diff -u loncom/lonc:1.46 loncom/lonc:1.47
--- loncom/lonc:1.46 Fri Feb 7 17:22:01 2003
+++ loncom/lonc Mon Feb 24 14:56:30 2003
@@ -5,7 +5,7 @@
# provides persistent TCP connections to the other servers in the network
# through multiplexed domain sockets
#
-# $Id: lonc,v 1.46 2003/02/07 22:22:01 albertel Exp $
+# $Id: lonc,v 1.47 2003/02/24 19:56:30 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -975,12 +975,12 @@
alarm(0);
};
} else {
- if($DEBUG) {
- &logthis("Timeout on send in londtransaction");
- }
+ &logthis("lonc - suiciding on send Timeout");
+ die("lonc - suiciding on send Timeout");
}
- if( ($@ =~ /timeout/) && ($DEBUG)) {
- &logthis("Timeout on receive in londtransaction");
+ if ($@ =~ /timeout/) {
+ &logthis("lonc - suiciding on send Timeout");
+ die("lonc - suiciding on send Timeout");
}
#
# Restore the initial sigmask set.