aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorlbsa712007-09-24 11:45:28 +0000
committerlbsa712007-09-24 11:45:28 +0000
commit7fc53abc22cec58122959e76e82ef5d8557b96b9 (patch)
tree8ddbed836b3f7e4c4ca8855a0b4758363bfc550e /OpenSim/Grid
parent* the worlds most insignificant commit (diff)
downloadopensim-SC_OLD-7fc53abc22cec58122959e76e82ef5d8557b96b9.zip
opensim-SC_OLD-7fc53abc22cec58122959e76e82ef5d8557b96b9.tar.gz
opensim-SC_OLD-7fc53abc22cec58122959e76e82ef5d8557b96b9.tar.bz2
opensim-SC_OLD-7fc53abc22cec58122959e76e82ef5d8557b96b9.tar.xz
* Now login swallows WebException.Timeout; (thanks cfk!)
(we should really implement some nearby/default known-up algorithm here)
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs21
1 files changed, 18 insertions, 3 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index 3820575..95192e3 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -71,9 +71,24 @@ namespace OpenSim.Grid.UserServer
71 theUser.currentAgent.currentHandle = SimInfo.regionHandle; 71 theUser.currentAgent.currentHandle = SimInfo.regionHandle;
72 72
73 System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI); 73 System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI);
74 // Send 74 // Send
75 XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams); 75 try
76 XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 3000); 76 {
77 XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
78 XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000);
79 }
80 catch( WebException e )
81 {
82 switch( e.Status )
83 {
84 case WebExceptionStatus.Timeout:
85 //TODO: Send him to nearby or default region instead
86 break;
87
88 default:
89 throw;
90 }
91 }
77 } 92 }
78 } 93 }
79} 94}