[LON-CAPA-cvs] cvs: loncom / LondConnection.pm
droeschl
droeschl@source.lon-capa.org
Tue, 06 Jul 2010 07:48:39 -0000
droeschl Tue Jul 6 07:48:39 2010 EDT
Modified files:
/loncom LondConnection.pm
Log:
Bug 6304:
- Timeout is reset after each successful send.
- Timeout was raised to 300 seconds.
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.47 loncom/LondConnection.pm:1.48
--- loncom/LondConnection.pm:1.47 Thu Oct 29 03:23:52 2009
+++ loncom/LondConnection.pm Tue Jul 6 07:48:38 2010
@@ -1,7 +1,7 @@
# This module defines and implements a class that represents
# a connection to a lond daemon.
#
-# $Id: LondConnection.pm,v 1.47 2009/10/29 03:23:52 raeburn Exp $
+# $Id: LondConnection.pm,v 1.48 2010/07/06 07:48:38 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -184,7 +184,7 @@
TimeoutCallback => undef,
TransitionCallback => undef,
Timeoutable => 0,
- TimeoutValue => 30,
+ TimeoutValue => 300,
TimeoutRemaining => 0,
LocalKeyFile => "",
CipherKey => "",
@@ -563,6 +563,7 @@
($errno == POSIX::EAGAIN) ||
($errno == POSIX::EINTR) ||
($errno == 0)) {
+ $self->{TimeoutRemaining} = $self->{TimeoutValue};
substr($self->{TransactionRequest}, 0, $nwritten) = ""; # rmv written part
if(length $self->{TransactionRequest} == 0) {
$self->{InformWritable} = 0;