* Massive amount of work on VoiceManager and VoiceTest, we are almost logging in

* Fixed a few lingering bugs with the CAPS event queue wanting to time out
* Forced CapsRequest to always use POST
* Removed more debugging spew from HttpBase

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1346 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2007-08-03 16:00:50 +00:00
parent fa9b7830a3
commit d9e2b40e3e
9 changed files with 750 additions and 46 deletions

View File

@@ -113,7 +113,7 @@ namespace libsecondlife
try
{
if (postData != null && postData.Length > 0)
if (postData != null)
{
// POST request
_RequestState.WebRequest.Method = "POST";
@@ -175,19 +175,23 @@ namespace libsecondlife
if (exception == null)
{
_Aborted = true;
Log("HttpBase.Abort(): HTTP request aborted", Helpers.LogLevel.Debug);
//Log("HttpBase.Abort(): HTTP request aborted", Helpers.LogLevel.Debug);
}
else if (exception.Message.Contains("404") || exception.Message.Contains("410"))
{
_Aborted = true;
Log("HttpBase.Abort(): HTTP request target is missing", Helpers.LogLevel.Debug);
}
else if (exception.Message.Contains("aborted"))
else if (exception.Message.Contains("Aborted") || exception.Message.Contains("aborted"))
{
// A callback threw an exception because the request is aborting, return to
// avoid circular problems
return;
}
else if (exception.Message.Contains("502"))
{
// Don't log anything since 502 errors are so common
}
else
{
Log(String.Format("HttpBase.Abort(): {0} (Status: {1})", exception.Message, exception.Status),
@@ -258,7 +262,7 @@ namespace libsecondlife
}
}
private void ReadCallback(IAsyncResult result)
protected void ReadCallback(IAsyncResult result)
{
try
{