* Now login swallows WebException.Timeout; (thanks cfk!)
(we should really implement some nearby/default known-up algorithm here)afrisby
parent
9f6b709f3c
commit
7fc53abc22
|
@ -72,8 +72,23 @@ namespace OpenSim.Grid.UserServer
|
||||||
|
|
||||||
System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI);
|
System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI);
|
||||||
// Send
|
// Send
|
||||||
XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
|
try
|
||||||
XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 3000);
|
{
|
||||||
|
XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
|
||||||
|
XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000);
|
||||||
|
}
|
||||||
|
catch( WebException e )
|
||||||
|
{
|
||||||
|
switch( e.Status )
|
||||||
|
{
|
||||||
|
case WebExceptionStatus.Timeout:
|
||||||
|
//TODO: Send him to nearby or default region instead
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue