--- loncom/LondConnection.pm 2003/06/13 02:38:30 1.5 +++ loncom/LondConnection.pm 2003/07/02 01:12:35 1.7 @@ -1,7 +1,7 @@ # This module defines and implements a class that represents # a connection to a lond daemon. # -# $Id: LondConnection.pm,v 1.5 2003/06/13 02:38:30 foxr Exp $ +# $Id: LondConnection.pm,v 1.7 2003/07/02 01:12:35 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,7 +37,7 @@ use Crypt::IDEA; use LONCAPA::Configuration; use LONCAPA::HashIterator; -my $DebugLevel=4; +my $DebugLevel=0; # Read the configuration file for apache to get the perl # variable set. @@ -215,7 +215,7 @@ sub Readable { my $rv = $socket->recv($data, POSIX::BUFSIZ, 0); my $errno = $! + 0; # Force numeric context. - unless (defined($rv) && length($data)) { # Read failed, + unless (defined($rv) && (length($data)> 0)) {# Read failed, if(($errno == POSIX::EWOULDBLOCK) || ($errno == POSIX::EAGAIN) || ($errno == POSIX::EINTR) ||