Diff for /loncom/loncnew between versions 1.109 and 1.110

version 1.109, 2020/01/12 01:21:33 version 1.110, 2024/06/14 18:49:41
Line 97  my $executable      = $0; # Get the full Line 97  my $executable      = $0; # Get the full
 my $RemoteHost; # Hostname of host child is talking to.  my $RemoteHost; # Hostname of host child is talking to.
 my $RemoteHostId; # lonid of host child is talking to.  my $RemoteHostId; # lonid of host child is talking to.
 my $RemoteDefHostId; # default lonhostID of host child is talking to.  my $RemoteDefHostId; # default lonhostID of host child is talking to.
 my $RemoteLoncapaRev;           # LON-CAPA version of host child is talking to.  my $RemoteLoncapaRev;           # LON-CAPA version of host child is talking to, 
                                   # if 2.12.0 or newer, format: X.Y.Z
 my @all_host_ids;  my @all_host_ids;
 my $UnixSocketDir= $perlvar{'lonSockDir'};  my $UnixSocketDir= $perlvar{'lonSockDir'};
 my $IdleConnections = Stack->new(); # Set of idle connections  my $IdleConnections = Stack->new(); # Set of idle connections
Line 1931  sub get_remote_hostname { Line 1932  sub get_remote_hostname {
   
     &Debug(5,"Creating child for $data (parent_client_connection)");      &Debug(5,"Creating child for $data (parent_client_connection)");
     (my $hostname,my $lonid,@all_host_ids) = split(':',$data);      (my $hostname,my $lonid,@all_host_ids) = split(':',$data);
       my $remotelcrev;
       if ((scalar(@all_host_ids) > 1) && ($all_host_ids[0] =~ /^\d+\.\d+\.[\w.]+$/)) {
           $remotelcrev = shift(@all_host_ids);
       }
     $ChildHost{$hostname}++;      $ChildHost{$hostname}++;
     if ($ChildHost{$hostname} == 1) {      if ($ChildHost{$hostname} == 1) {
  &CreateChild($hostname,$lonid,$all_host_ids[-1]);   &CreateChild($hostname,$lonid,$all_host_ids[-1],$remotelcrev);
     } else {      } else {
  &Log('WARNING',"Request for a second child on $hostname");   &Log('WARNING',"Request for a second child on $hostname");
     }      }

Removed from v.1.109  
changed lines
  Added in v.1.110


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>