[LON-CAPA-cvs] cvs: loncom / LondConnection.pm
foxr
foxr@source.lon-capa.org
Thu, 20 Jan 2011 11:16:20 -0000
foxr Thu Jan 20 11:16:20 2011 EDT
Modified files:
/loncom LondConnection.pm
Log:
Turn on keepalive with the default timing for now.
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.50 loncom/LondConnection.pm:1.51
--- loncom/LondConnection.pm:1.50 Tue Dec 21 11:17:33 2010
+++ loncom/LondConnection.pm Thu Jan 20 11:16:20 2011
@@ -1,7 +1,7 @@
# This module defines and implements a class that represents
# a connection to a lond daemon.
#
-# $Id: LondConnection.pm,v 1.50 2010/12/21 11:17:33 foxr Exp $
+# $Id: LondConnection.pm,v 1.51 2011/01/20 11:16:20 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -200,6 +200,7 @@
return undef; # Inidicates the socket could not be made.
}
my $socket = $self->{Socket}; # For local use only.
+ $socket->sockopt(SO_KEEPALIVE, 1); # Turn on keepalive probes when idle.
# If we are local, we'll first try local auth mode, otherwise, we'll try
# the ssl auth mode: