replace a couple of xmlrpc invocations with invoke() instead of send()
this is in order to force an exception on an error - send() does not do this and people end up simply ignoring the error codes...0.6.8-post-fixes
parent
52fd82ae5d
commit
be3360db67
|
@ -113,8 +113,9 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
|||
// Send Request
|
||||
try
|
||||
{
|
||||
XmlRpcRequest UserReq = new XmlRpcRequest("register_messageserver", SendParams);
|
||||
XmlRpcResponse UserResp = UserReq.Send(srv, 16000);
|
||||
XmlRpcRequest UserReq = new XmlRpcRequest("register_messageserver", SendParams);
|
||||
XmlRpcResponse UserResp = (XmlRpcResponse)UserReq.Invoke(srv);
|
||||
//XmlRpcResponse UserResp = UserReq.Send(srv, 16000);
|
||||
|
||||
// Process Response
|
||||
Hashtable GridRespData = (Hashtable)UserResp.Value;
|
||||
|
|
|
@ -270,7 +270,8 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
|||
IList parameters = new ArrayList();
|
||||
parameters.Add(param);
|
||||
XmlRpcRequest req = new XmlRpcRequest("get_user_friend_list", parameters);
|
||||
XmlRpcResponse resp = req.Send(m_cfg.UserServerURL, 3000);
|
||||
XmlRpcResponse resp = (XmlRpcResponse)req.Invoke(m_cfg.UserServerURL);
|
||||
//XmlRpcResponse resp = req.Send(m_cfg.UserServerURL, 3000);
|
||||
Hashtable respData = (Hashtable)resp.Value;
|
||||
|
||||
if (respData.Contains("avcount"))
|
||||
|
|
Loading…
Reference in New Issue