diff options
author | Dr Scofield | 2009-01-30 08:48:41 +0000 |
---|---|---|
committer | Dr Scofield | 2009-01-30 08:48:41 +0000 |
commit | 27df816184d237a8466947546e5535bf7b1cb9bd (patch) | |
tree | f1c8e71c177da832c7c4bfb5b24e3bf60b76c341 | |
parent | * If an orphaned group is found in the mysql or mssql databases (i.e. there i... (diff) | |
download | opensim-SC-27df816184d237a8466947546e5535bf7b1cb9bd.zip opensim-SC-27df816184d237a8466947546e5535bf7b1cb9bd.tar.gz opensim-SC-27df816184d237a8466947546e5535bf7b1cb9bd.tar.bz2 opensim-SC-27df816184d237a8466947546e5535bf7b1cb9bd.tar.xz |
fixing: client gets logged out when concierge's broker returns 500
response.
adding: more verbose error logging
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs index ffc2d36..06d6c8d 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs | |||
@@ -412,18 +412,35 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge | |||
412 | 412 | ||
413 | private void UpdateBrokerDone(IAsyncResult result) | 413 | private void UpdateBrokerDone(IAsyncResult result) |
414 | { | 414 | { |
415 | HttpWebRequest updatePost = null; | ||
415 | try | 416 | try |
416 | { | 417 | { |
417 | HttpWebRequest updatePost = result.AsyncState as HttpWebRequest; | 418 | updatePost = result.AsyncState as HttpWebRequest; |
418 | using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse) | 419 | using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse) |
419 | { | 420 | { |
420 | response.Close(); | ||
421 | _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode); | 421 | _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode); |
422 | } | 422 | } |
423 | } | 423 | } |
424 | catch (WebException we) | 424 | catch (WebException we) |
425 | { | 425 | { |
426 | _log.ErrorFormat("[Concierge] broker update to {0} failed with status {1}", _brokerURI, we.Status); | 426 | _log.ErrorFormat("[Concierge] broker update to {0} failed with status {1}", _brokerURI, we.Status); |
427 | if (null != we.Response) | ||
428 | { | ||
429 | using(HttpWebResponse resp = we.Response as HttpWebResponse) | ||
430 | { | ||
431 | _log.ErrorFormat("[Concierge] response from {0} request Uri: {1}", _brokerURI, updatePost.RequestUri); | ||
432 | _log.ErrorFormat("[Concierge] response from {0} status code: {1}", _brokerURI, resp.StatusCode); | ||
433 | _log.ErrorFormat("[Concierge] response from {0} status desc: {1}", _brokerURI, resp.StatusDescription); | ||
434 | _log.ErrorFormat("[Concierge] response from {0} server: {1}", _brokerURI, resp.Server); | ||
435 | |||
436 | if (resp.ContentLength > 0) | ||
437 | { | ||
438 | StreamReader content = new StreamReader(resp.GetResponseStream()); | ||
439 | _log.ErrorFormat("[Concierge] response from {0} content: {1}", _brokerURI, content.ReadToEnd()); | ||
440 | content.Close(); | ||
441 | } | ||
442 | } | ||
443 | } | ||
427 | } | 444 | } |
428 | } | 445 | } |
429 | 446 | ||