aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar/Concierge
diff options
context:
space:
mode:
authorDr Scofield2009-01-26 21:33:36 +0000
committerDr Scofield2009-01-26 21:33:36 +0000
commit494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4 (patch)
treeccca1dcbf9a7a395bd0ca0064b0d810ab4aab73e /OpenSim/Region/Environment/Modules/Avatar/Concierge
parent~ fix: Concierge reports avatar leaving region twice (diff)
downloadopensim-SC-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.zip
opensim-SC-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.tar.gz
opensim-SC-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.tar.bz2
opensim-SC-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.tar.xz
~ turning synchronous broker update into asynchronous one
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Concierge')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs
index 35d1905..297913e 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs
@@ -404,11 +404,19 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
404 payloadStream.Write(payload); 404 payloadStream.Write(payload);
405 payloadStream.Close(); 405 payloadStream.Close();
406 406
407 HttpWebResponse response = updatePost.GetResponse() as HttpWebResponse; 407 updatePost.BeginGetResponse(UpdateBrokerDone, updatePost);
408 response.Close(); 408 _log.DebugFormat("[Concierge] async broker update to {0} started", _brokerURI);
409 _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode);
410 } 409 }
411 410
411 private void UpdateBrokerDone(IAsyncResult result)
412 {
413 HttpWebRequest updatePost = result.AsyncState as HttpWebRequest;
414 using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse)
415 {
416 response.Close();
417 _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode);
418 }
419 }
412 420
413 protected void WelcomeAvatar(ScenePresence agent, Scene scene) 421 protected void WelcomeAvatar(ScenePresence agent, Scene scene)
414 { 422 {