From 695780375924693105aa9b5a06bfe81a28393373 Mon Sep 17 00:00:00 2001 From: diva Date: Mon, 30 Mar 2009 17:34:36 +0000 Subject: Sigh. Manual data typing grief. --- .../Framework/Communications/Clients/AuthClient.cs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'OpenSim/Framework/Communications/Clients/AuthClient.cs') diff --git a/OpenSim/Framework/Communications/Clients/AuthClient.cs b/OpenSim/Framework/Communications/Clients/AuthClient.cs index 95af7e1..ba5cf66 100644 --- a/OpenSim/Framework/Communications/Clients/AuthClient.cs +++ b/OpenSim/Framework/Communications/Clients/AuthClient.cs @@ -82,7 +82,7 @@ namespace OpenSim.Framework.Communications.Clients XmlRpcResponse reply; try { - reply = request.Send(authurl, 6000); + reply = request.Send(authurl, 10000); } catch (Exception e) { @@ -90,17 +90,25 @@ namespace OpenSim.Framework.Communications.Clients return false; } - if (!reply.IsFault) + if (reply != null) { - bool success = false; - if (reply.Value != null) - success = (bool)reply.Value; + if (!reply.IsFault) + { + bool success = false; + if (reply.Value != null) + success = (bool)reply.Value; - return success; + return success; + } + else + { + System.Console.WriteLine("[HGrid]: XmlRpc request to verify key failed with message {0}" + reply.FaultString + ", code " + reply.FaultCode); + return false; + } } else { - System.Console.WriteLine("[HGrid]: XmlRpc request to verify key failed with message {0}" + reply.FaultString + ", code " + reply.FaultCode); + System.Console.WriteLine("[HGrid]: XmlRpc request to verify key returned null reply"); return false; } } -- cgit v1.1