version 1.108, 2018/12/14 02:05:38
|
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 614 sub CompleteTransaction {
|
Line 615 sub CompleteTransaction {
|
StartClientReply($Transaction, $data); |
StartClientReply($Transaction, $data); |
} else { # Delete deferred transaction file. |
} else { # Delete deferred transaction file. |
Log("SUCCESS", "A delayed transaction was completed"); |
Log("SUCCESS", "A delayed transaction was completed"); |
LogPerm("S:".$Socket->PeerLoncapaHim().":".$Transaction->getRequest()); |
LogPerm("S:".$Transaction->getClient().":".$Transaction->getRequest()); |
unlink($Transaction->getFile()); |
unlink($Transaction->getFile()); |
} |
} |
} |
} |
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"); |
} |
} |