* Adding console spam to help track 'The Steve Bug'.
parent
62943de68a
commit
a637473f80
|
@ -456,7 +456,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public XmlRpcResponse ExpectUser(XmlRpcRequest request)
|
public XmlRpcResponse ExpectUser(XmlRpcRequest request)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Expecting User...");
|
m_log.Debug("[CONNECTION DEBUGGING]: Expect User called, starting agent setup ... ");
|
||||||
Hashtable requestData = (Hashtable) request.Params[0];
|
Hashtable requestData = (Hashtable) request.Params[0];
|
||||||
AgentCircuitData agentData = new AgentCircuitData();
|
AgentCircuitData agentData = new AgentCircuitData();
|
||||||
agentData.SessionID = new LLUUID((string) requestData["session_id"]);
|
agentData.SessionID = new LLUUID((string) requestData["session_id"]);
|
||||||
|
@ -469,10 +469,12 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
|
|
||||||
if (requestData.ContainsKey("child_agent") && requestData["child_agent"].Equals("1"))
|
if (requestData.ContainsKey("child_agent") && requestData["child_agent"].Equals("1"))
|
||||||
{
|
{
|
||||||
|
m_log.Debug("[CONNECTION DEBUGGING]: Child agent detected");
|
||||||
agentData.child = true;
|
agentData.child = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
m_log.Debug("[CONNECTION DEBUGGING]: Main agent detected");
|
||||||
agentData.startpos =
|
agentData.startpos =
|
||||||
new LLVector3(Convert.ToUInt32(requestData["startpos_x"]),
|
new LLVector3(Convert.ToUInt32(requestData["startpos_x"]),
|
||||||
Convert.ToUInt32(requestData["startpos_y"]),
|
Convert.ToUInt32(requestData["startpos_y"]),
|
||||||
|
@ -482,6 +484,7 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
|
|
||||||
ulong regionHandle = Convert.ToUInt64((string) requestData["regionhandle"]);
|
ulong regionHandle = Convert.ToUInt64((string) requestData["regionhandle"]);
|
||||||
|
|
||||||
|
m_log.Debug("[CONNECTION DEBUGGING]: Triggering welcome for " + agentData.AgentID.ToString() + " into " + regionHandle.ToString());
|
||||||
m_localBackend.TriggerExpectUser(regionHandle, agentData);
|
m_localBackend.TriggerExpectUser(regionHandle, agentData);
|
||||||
|
|
||||||
m_log.Info("[GRID]: Welcoming new user...");
|
m_log.Info("[GRID]: Welcoming new user...");
|
||||||
|
|
|
@ -1241,6 +1241,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
/// <param name="child"></param>
|
/// <param name="child"></param>
|
||||||
public override void AddNewClient(IClientAPI client, bool child)
|
public override void AddNewClient(IClientAPI client, bool child)
|
||||||
{
|
{
|
||||||
|
m_log.Warn("[CONNECTION DEBUGGING]: Creating new client for " + client.AgentId.ToString());
|
||||||
SubscribeToClientEvents(client);
|
SubscribeToClientEvents(client);
|
||||||
|
|
||||||
m_estateManager.sendRegionHandshake(client);
|
m_estateManager.sendRegionHandshake(client);
|
||||||
|
@ -1516,6 +1517,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
if (agent.CapsPath != String.Empty)
|
if (agent.CapsPath != String.Empty)
|
||||||
{
|
{
|
||||||
|
m_log.Debug("[CONNECTION DEBUGGING]: Setting up CAPS handler for " + agent.AgentID.ToString() + " at " + agent.CapsPath.ToString());
|
||||||
Caps cap =
|
Caps cap =
|
||||||
new Caps(AssetCache, httpListener, m_regInfo.ExternalHostName, httpListener.Port,
|
new Caps(AssetCache, httpListener, m_regInfo.ExternalHostName, httpListener.Port,
|
||||||
agent.CapsPath, agent.AgentID, m_dumpAssetsToFile);
|
agent.CapsPath, agent.AgentID, m_dumpAssetsToFile);
|
||||||
|
@ -1534,14 +1536,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
if (m_capsHandlers.ContainsKey(agent.AgentID))
|
if (m_capsHandlers.ContainsKey(agent.AgentID))
|
||||||
{
|
{
|
||||||
//m_log.Warn("[client]: Adding duplicate CAPS entry for user " +
|
m_log.Debug("[CONNECTION DEBUGGING]: Caps path already in use for " + agent.AgentID.ToString());
|
||||||
// agent.AgentID.ToString());
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_capsHandlers[agent.AgentID] = cap;
|
m_capsHandlers[agent.AgentID] = cap;
|
||||||
}
|
}
|
||||||
catch (KeyNotFoundException)
|
catch (KeyNotFoundException)
|
||||||
{
|
{
|
||||||
|
m_log.Debug("[CONNECTION DEBUGGING]: Caught exception adding handler for " + agent.AgentID.ToString());
|
||||||
// Fix for a potential race condition.
|
// Fix for a potential race condition.
|
||||||
m_capsHandlers.Add(agent.AgentID, cap);
|
m_capsHandlers.Add(agent.AgentID, cap);
|
||||||
}
|
}
|
||||||
|
@ -1551,9 +1553,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
m_capsHandlers.Add(agent.AgentID, cap);
|
m_capsHandlers.Add(agent.AgentID, cap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_log.Debug("[client]: Creating agent circuit");
|
else
|
||||||
|
{
|
||||||
|
m_log.Warn("[CONNECTION DEBUGGING]: Skipped setting up CAPS handler for " + agent.AgentID.ToString());
|
||||||
|
}
|
||||||
|
m_log.Debug("[CONNECTION DEBUGGING]: Creating new circuit code (" + agent.circuitcode.ToString() + ") for " + agent.AgentID.ToString());
|
||||||
m_authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
|
m_authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.Warn("[CONNECTION DEBUGGING]: Skipping this region for welcoming " + agent.AgentID.ToString() + " [" + regionHandle.ToString() + "]");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue