diff options
Diffstat (limited to 'OpenSim')
-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 | ||