diff options
Diffstat (limited to 'OpenSim/Services')
5 files changed, 27 insertions, 7 deletions
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs index 96d2605..69dff3c 100644 --- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs | |||
@@ -53,9 +53,20 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
53 | MethodBase.GetCurrentMethod().DeclaringType); | 53 | MethodBase.GetCurrentMethod().DeclaringType); |
54 | 54 | ||
55 | string m_ServerURL; | 55 | string m_ServerURL; |
56 | Uri m_Uri; | ||
56 | public UserAgentServiceConnector(string url) | 57 | public UserAgentServiceConnector(string url) |
57 | { | 58 | { |
58 | m_ServerURL = url; | 59 | m_ServerURL = url; |
60 | try | ||
61 | { | ||
62 | m_Uri = new Uri(m_ServerURL); | ||
63 | IPAddress ip = Util.GetHostFromDNS(m_Uri.Host); | ||
64 | m_ServerURL = "http://" + ip.ToString() + ":" + m_Uri.Port; | ||
65 | } | ||
66 | catch (Exception e) | ||
67 | { | ||
68 | m_log.DebugFormat("[USER AGENT CONNECTOR]: Malformed Uri {0}: {1}", m_ServerURL, e.Message); | ||
69 | } | ||
59 | } | 70 | } |
60 | 71 | ||
61 | public UserAgentServiceConnector(IConfigSource config) | 72 | public UserAgentServiceConnector(IConfigSource config) |
@@ -373,7 +384,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
373 | 384 | ||
374 | if (response.IsFault) | 385 | if (response.IsFault) |
375 | { | 386 | { |
376 | m_log.ErrorFormat("[HGrid]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); | 387 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: remote call to {0} returned an error: {1}", m_ServerURL, response.FaultString); |
377 | reason = "XMLRPC Fault"; | 388 | reason = "XMLRPC Fault"; |
378 | return false; | 389 | return false; |
379 | } | 390 | } |
@@ -403,7 +414,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
403 | } | 414 | } |
404 | catch (Exception e) | 415 | catch (Exception e) |
405 | { | 416 | { |
406 | m_log.ErrorFormat("[HGrid]: Got exception on GetBoolResponse response."); | 417 | m_log.ErrorFormat("[USER AGENT CONNECTOR]: Got exception on GetBoolResponse response."); |
407 | if (hash.ContainsKey("result") && hash["result"] != null) | 418 | if (hash.ContainsKey("result") && hash["result"] != null) |
408 | m_log.ErrorFormat("Reply was ", (string)hash["result"]); | 419 | m_log.ErrorFormat("Reply was ", (string)hash["result"]); |
409 | reason = "Exception: " + e.Message; | 420 | reason = "Exception: " + e.Message; |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs index 7a420e4..616b5a7 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs | |||
@@ -184,7 +184,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
184 | } | 184 | } |
185 | catch (Exception ex) | 185 | catch (Exception ex) |
186 | { | 186 | { |
187 | m_log.Warn("[SIMIAN ASSET CONNECTOR]: Asset GET from " + url + " failed: " + ex.Message); | 187 | m_log.Warn("[SIMIAN ASSET CONNECTOR]: Asset HEAD from " + url + " failed: " + ex.Message); |
188 | } | 188 | } |
189 | 189 | ||
190 | return metadata; | 190 | return metadata; |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs b/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs index 704790e..d30d880 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs | |||
@@ -326,7 +326,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
326 | try | 326 | try |
327 | { | 327 | { |
328 | interests = OSDParser.DeserializeJson(user["LLInterests"].AsString()) as OSDMap; | 328 | interests = OSDParser.DeserializeJson(user["LLInterests"].AsString()) as OSDMap; |
329 | client.SendAvatarInterestsReply(avatarID, interests["WantMask"].AsUInteger(), interests["WantText"].AsString(), interests["SkillsMask"].AsUInteger(), interests["SkillsText"].AsString(), interests["languages"].AsString()); | 329 | client.SendAvatarInterestsReply(avatarID, interests["WantMask"].AsUInteger(), interests["WantText"].AsString(), interests["SkillsMask"].AsUInteger(), interests["SkillsText"].AsString(), interests["Languages"].AsString()); |
330 | } | 330 | } |
331 | catch { } | 331 | catch { } |
332 | } | 332 | } |
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index 0947b5f..957df35 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -257,7 +257,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
257 | HttpWebRequest ChildUpdateRequest = (HttpWebRequest)WebRequest.Create(uri); | 257 | HttpWebRequest ChildUpdateRequest = (HttpWebRequest)WebRequest.Create(uri); |
258 | ChildUpdateRequest.Method = "PUT"; | 258 | ChildUpdateRequest.Method = "PUT"; |
259 | ChildUpdateRequest.ContentType = "application/json"; | 259 | ChildUpdateRequest.ContentType = "application/json"; |
260 | ChildUpdateRequest.Timeout = 10000; | 260 | ChildUpdateRequest.Timeout = 30000; |
261 | //ChildUpdateRequest.KeepAlive = false; | 261 | //ChildUpdateRequest.KeepAlive = false; |
262 | 262 | ||
263 | // Fill it in | 263 | // Fill it in |
@@ -334,7 +334,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
334 | } | 334 | } |
335 | catch (WebException ex) | 335 | catch (WebException ex) |
336 | { | 336 | { |
337 | m_log.InfoFormat("[REMOTE SIMULATION CONNECTOR]: exception on reply of ChilAgentUpdate {0}", ex.Message); | 337 | m_log.InfoFormat("[REMOTE SIMULATION CONNECTOR]: exception on reply of ChilAgentUpdate from {0}: {1}", uri, ex.Message); |
338 | // ignore, really | 338 | // ignore, really |
339 | } | 339 | } |
340 | finally | 340 | finally |
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 3aaafe8..6f041da 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs | |||
@@ -259,7 +259,16 @@ namespace OpenSim.Services.HypergridService | |||
259 | if (account == null && !aCircuit.lastname.StartsWith("@")) | 259 | if (account == null && !aCircuit.lastname.StartsWith("@")) |
260 | { | 260 | { |
261 | aCircuit.firstname = aCircuit.firstname + "." + aCircuit.lastname; | 261 | aCircuit.firstname = aCircuit.firstname + "." + aCircuit.lastname; |
262 | aCircuit.lastname = "@" + aCircuit.ServiceURLs["HomeURI"].ToString(); | 262 | try |
263 | { | ||
264 | Uri uri = new Uri(aCircuit.ServiceURLs["HomeURI"].ToString()); | ||
265 | aCircuit.lastname = "@" + uri.Host; // + ":" + uri.Port; | ||
266 | } | ||
267 | catch | ||
268 | { | ||
269 | m_log.WarnFormat("[GATEKEEPER SERVICE]: Malformed HomeURI (this should never happen): {0}", aCircuit.ServiceURLs["HomeURI"]); | ||
270 | aCircuit.lastname = "@" + aCircuit.ServiceURLs["HomeURI"].ToString(); | ||
271 | } | ||
263 | } | 272 | } |
264 | 273 | ||
265 | // | 274 | // |