--- loncom/LondConnection.pm 2006/01/27 20:37:12 1.39 +++ loncom/LondConnection.pm 2006/03/03 20:06:22 1.40 @@ -1,7 +1,7 @@ # This module defines and implements a class that represents # a connection to a lond daemon. # -# $Id: LondConnection.pm,v 1.39 2006/01/27 20:37:12 albertel Exp $ +# $Id: LondConnection.pm,v 1.40 2006/03/03 20:06:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -738,7 +738,7 @@ sub InitiateTransaction { # Setup the trasaction # currently no version of lond supports inlining the sethost - if ($self->PeerVersion() <= 10000000) { + if ($self->PeerVersion() <= 321) { if ($server ne $self->{LoncapaHim}) { $self->{NextRequest} = $data; $self->{TransactionRequest} = "$sethost:$server\n"; @@ -747,6 +747,7 @@ sub InitiateTransaction { $self->{TransactionRequest} = $data; } } else { + $self->{LoncapaHim} = $server; $self->{TransactionRequest} = "$sethost:$server:$data"; } $self->{TransactionReply} = ""; @@ -1257,8 +1258,8 @@ sub read_hosts { # sub PeerVersion { my $self = shift; - my ($version) = ($self->{LondVersion} =~ /Revision 1\.(\d+)/); - return $self->{LondVersion}; + my ($version) = ($self->{LondVersion} =~ /Revision: 1\.(\d+)/); + return $version; } 1;