[OpenMetaverse.Http]

* Made sure to always close streams and responses in CapsBase
* Commented out noisy CAPS logging
* Updated to use the new HttpServer callback signature

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2791 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-05-21 05:33:40 +00:00
parent 069f335441
commit 63522e828c
4 changed files with 89 additions and 70 deletions

View File

@@ -116,7 +116,7 @@ namespace OpenMetaverse.Http
eventQueue.Enqueue(events[i]);
}
public bool EventQueueHandler(IHttpClientContext context, IHttpRequest request, IHttpResponse response)
public void EventQueueHandler(IHttpClientContext context, IHttpRequest request, IHttpResponse response)
{
// Decode the request
OSD osdRequest = null;
@@ -161,9 +161,6 @@ namespace OpenMetaverse.Http
Thread thread = new Thread(new ThreadStart(EventQueueThread));
thread.IsBackground = true;
thread.Start();
// Tell HttpServer to leave the connection open
return false;
}
else
{
@@ -172,7 +169,7 @@ namespace OpenMetaverse.Http
Stop();
response.Connection = request.Connection;
return true;
response.Send();
}
}
else
@@ -182,7 +179,7 @@ namespace OpenMetaverse.Http
response.Connection = request.Connection;
response.Status = HttpStatusCode.BadRequest;
return true;
response.Send();
}
}