~ turning synchronous broker update into asynchronous one
parent
8c4ac64d80
commit
494cfdfe37
|
@ -404,11 +404,19 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
|
||||||
payloadStream.Write(payload);
|
payloadStream.Write(payload);
|
||||||
payloadStream.Close();
|
payloadStream.Close();
|
||||||
|
|
||||||
HttpWebResponse response = updatePost.GetResponse() as HttpWebResponse;
|
updatePost.BeginGetResponse(UpdateBrokerDone, updatePost);
|
||||||
|
_log.DebugFormat("[Concierge] async broker update to {0} started", _brokerURI);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UpdateBrokerDone(IAsyncResult result)
|
||||||
|
{
|
||||||
|
HttpWebRequest updatePost = result.AsyncState as HttpWebRequest;
|
||||||
|
using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse)
|
||||||
|
{
|
||||||
response.Close();
|
response.Close();
|
||||||
_log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode);
|
_log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void WelcomeAvatar(ScenePresence agent, Scene scene)
|
protected void WelcomeAvatar(ScenePresence agent, Scene scene)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue