* Now login swallows WebException.Timeout; (thanks cfk!)

(we should really implement some nearby/default known-up algorithm here)
afrisby
lbsa71 2007-09-24 11:45:28 +00:00
parent 9f6b709f3c
commit 7fc53abc22
1 changed files with 18 additions and 3 deletions

View File

@ -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;
}
}
} }
} }
} }