fix: client gets logged out when concierge's broker returns 500

response.
0.6.3-post-fixes
Dr Scofield 2009-01-28 18:58:49 +00:00
parent ce1e1854b1
commit 4cfa36ee8b
1 changed files with 11 additions and 4 deletions

View File

@ -411,6 +411,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
} }
private void UpdateBrokerDone(IAsyncResult result) private void UpdateBrokerDone(IAsyncResult result)
{
try
{ {
HttpWebRequest updatePost = result.AsyncState as HttpWebRequest; HttpWebRequest updatePost = result.AsyncState as HttpWebRequest;
using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse) using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse)
@ -419,6 +421,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
_log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode); _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode);
} }
} }
catch (WebException we)
{
_log.ErrorFormat("[Concierge] broker update to {0} failed with status {1}", _brokerURI, we.Status);
}
}
protected void WelcomeAvatar(ScenePresence agent, Scene scene) protected void WelcomeAvatar(ScenePresence agent, Scene scene)
{ {