More tweaking on the UserAgentServiceConnector: add constructor that does not do DNS lookup, and use that for friends notification.
parent
0ae022d688
commit
5f311c91c7
|
@ -278,7 +278,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
List<string> ids = new List<string>();
|
List<string> ids = new List<string>();
|
||||||
foreach (FriendInfo f in kvp.Value)
|
foreach (FriendInfo f in kvp.Value)
|
||||||
ids.Add(f.Friend);
|
ids.Add(f.Friend);
|
||||||
UserAgentServiceConnector uConn = new UserAgentServiceConnector(kvp.Key);
|
UserAgentServiceConnector uConn = new UserAgentServiceConnector(kvp.Key, false);
|
||||||
List<UUID> friendsOnline = uConn.StatusNotification(ids, userID, online);
|
List<UUID> friendsOnline = uConn.StatusNotification(ids, userID, online);
|
||||||
// need to debug this here
|
// need to debug this here
|
||||||
if (online)
|
if (online)
|
||||||
|
|
|
@ -51,9 +51,17 @@ namespace OpenSim.Services.Connectors.Hypergrid
|
||||||
MethodBase.GetCurrentMethod().DeclaringType);
|
MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
string m_ServerURL;
|
string m_ServerURL;
|
||||||
public UserAgentServiceConnector(string url)
|
|
||||||
|
public UserAgentServiceConnector(string url) : this(url, true)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserAgentServiceConnector(string url, bool dnsLookup)
|
||||||
{
|
{
|
||||||
m_ServerURL = url;
|
m_ServerURL = url;
|
||||||
|
|
||||||
|
if (dnsLookup)
|
||||||
|
{
|
||||||
// Doing this here, because XML-RPC or mono have some strong ideas about
|
// Doing this here, because XML-RPC or mono have some strong ideas about
|
||||||
// caching DNS translations.
|
// caching DNS translations.
|
||||||
try
|
try
|
||||||
|
@ -68,6 +76,7 @@ namespace OpenSim.Services.Connectors.Hypergrid
|
||||||
{
|
{
|
||||||
m_log.DebugFormat("[USER AGENT CONNECTOR]: Malformed Uri {0}: {1}", m_ServerURL, e.Message);
|
m_log.DebugFormat("[USER AGENT CONNECTOR]: Malformed Uri {0}: {1}", m_ServerURL, e.Message);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
m_log.DebugFormat("[USER AGENT CONNECTOR]: new connector to {0} ({1})", url, m_ServerURL);
|
m_log.DebugFormat("[USER AGENT CONNECTOR]: new connector to {0} ({1})", url, m_ServerURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue