Fix recent regression in 3c6becd5
where login or hg login to variable sized regions failed with outdated simulator message.
I forgot that a null 'their version' would not be passed over the wire and ends up as an empty string instead (like older simulators). So instead pass through the correct simulator protcol version instead (SIMULATOR/0.3) when querying from login or hg login. Also removes a debug console write for agent limit accidentally left in for the same commit. Relates to mantis 72760.8.0.3
parent
fdb0c7389e
commit
dfaabf4d0d
|
@ -283,8 +283,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
// s.RegionInfo.RegionName, destination.RegionHandle);
|
// s.RegionInfo.RegionName, destination.RegionHandle);
|
||||||
uint size = m_scenes[destination.RegionID].RegionInfo.RegionSizeX;
|
uint size = m_scenes[destination.RegionID].RegionInfo.RegionSizeX;
|
||||||
|
|
||||||
if (theirversion != null)
|
|
||||||
{
|
|
||||||
float theirVersionNumber = 0f;
|
float theirVersionNumber = 0f;
|
||||||
string[] versionComponents = theirversion.Split(new char[] { '/' });
|
string[] versionComponents = theirversion.Split(new char[] { '/' });
|
||||||
if (versionComponents.Length >= 2)
|
if (versionComponents.Length >= 2)
|
||||||
|
@ -299,7 +297,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return m_scenes[destination.RegionID].QueryAccess(agentID, agentHomeURI, viaTeleport, position, out reason);
|
return m_scenes[destination.RegionID].QueryAccess(agentID, agentHomeURI, viaTeleport, position, out reason);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5514,7 +5514,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
int num = m_sceneGraph.GetRootAgentCount();
|
int num = m_sceneGraph.GetRootAgentCount();
|
||||||
|
|
||||||
Console.WriteLine("{0} {1}", num, RegionInfo.RegionSettings.AgentLimit);
|
|
||||||
if (num >= RegionInfo.RegionSettings.AgentLimit)
|
if (num >= RegionInfo.RegionSettings.AgentLimit)
|
||||||
{
|
{
|
||||||
if (!Permissions.IsAdministrator(agentID))
|
if (!Permissions.IsAdministrator(agentID))
|
||||||
|
|
|
@ -436,7 +436,7 @@ namespace OpenSim.Services.HypergridService
|
||||||
|
|
||||||
if (!m_SimulationService.QueryAccess(
|
if (!m_SimulationService.QueryAccess(
|
||||||
destination, aCircuit.AgentID, aCircuit.ServiceURLs["HomeURI"].ToString(),
|
destination, aCircuit.AgentID, aCircuit.ServiceURLs["HomeURI"].ToString(),
|
||||||
true, aCircuit.startpos, null, out version, out reason))
|
true, aCircuit.startpos, "SIMULATION/0.3", out version, out reason))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return m_SimulationService.CreateAgent(source, destination, aCircuit, (uint)loginFlag, out reason);
|
return m_SimulationService.CreateAgent(source, destination, aCircuit, (uint)loginFlag, out reason);
|
||||||
|
|
|
@ -961,7 +961,9 @@ namespace OpenSim.Services.LLLoginService
|
||||||
{
|
{
|
||||||
string version;
|
string version;
|
||||||
|
|
||||||
if (!simConnector.QueryAccess(region, aCircuit.AgentID, null, true, aCircuit.startpos, null, out version, out reason))
|
if (
|
||||||
|
!simConnector.QueryAccess(
|
||||||
|
region, aCircuit.AgentID, null, true, aCircuit.startpos, "SIMULATION/0.3", out version, out reason))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return simConnector.CreateAgent(null, region, aCircuit, (uint)flags, out reason);
|
return simConnector.CreateAgent(null, region, aCircuit, (uint)flags, out reason);
|
||||||
|
@ -969,9 +971,8 @@ namespace OpenSim.Services.LLLoginService
|
||||||
|
|
||||||
private bool LaunchAgentIndirectly(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, IPEndPoint clientIP, out string reason)
|
private bool LaunchAgentIndirectly(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, IPEndPoint clientIP, out string reason)
|
||||||
{
|
{
|
||||||
string version;
|
|
||||||
|
|
||||||
m_log.Debug("[LLOGIN SERVICE]: Launching agent at " + destination.RegionName);
|
m_log.Debug("[LLOGIN SERVICE]: Launching agent at " + destination.RegionName);
|
||||||
|
|
||||||
if (m_UserAgentService.LoginAgentToGrid(null, aCircuit, gatekeeper, destination, true, out reason))
|
if (m_UserAgentService.LoginAgentToGrid(null, aCircuit, gatekeeper, destination, true, out reason))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue