--- loncom/lonnet/perl/lonnet.pm 2002/08/23 13:21:36 1.272 +++ loncom/lonnet/perl/lonnet.pm 2002/08/28 19:48:57 1.274 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.272 2002/08/23 13:21:36 matthew Exp $ +# $Id: lonnet.pm,v 1.274 2002/08/28 19:48:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1569,6 +1569,9 @@ sub get { my $rep=&reply("get:$udomain:$uname:$namespace:$items",$uhome); my @pairs=split(/\&/,$rep); + if ( $#pairs==0 && $pairs[0] =~ /^(con_lost|error|no_such_host)/i) { + return @pairs; + } my %returnhash=(); my $i=0; foreach (@$storearr) { @@ -2858,8 +2861,9 @@ sub metadata { # the next is the end of "start tag" } } - &metadata_generate_part0(\%metathesekeys,\%metacache,$uri); $metacache{$uri.':keys'}=join(',',keys %metathesekeys); + &metadata_generate_part0(\%metathesekeys,\%metacache,$uri); + $metacache{$uri.':allpossiblekeys'}=join(',',keys %metathesekeys); $metacache{$uri.':cachedtimestamp'}=time; # this is the end of "was not already recently cached }