--- loncom/LondConnection.pm 2010/12/21 11:17:33 1.50 +++ loncom/LondConnection.pm 2011/01/20 11:16:20 1.51 @@ -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 @@ sub new { 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: