diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs index 0e4a9413d0..9083e12601 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs @@ -47,8 +47,10 @@ namespace OpenSim.Framework.Servers.HttpServer public readonly UUID RequestID; public int contextHash; +/* private void GenContextHash() { + Random rnd = new Random(); contextHash = 0; if (Request.Headers["remote_addr"] != null) @@ -62,8 +64,9 @@ namespace OpenSim.Framework.Servers.HttpServer } else contextHash += rnd.Next() & 0xffff; - } + } +*/ public PollServiceHttpRequest( PollServiceEventArgs pPollServiceArgs, IHttpClientContext pHttpContext, IHttpRequest pRequest) { @@ -72,7 +75,8 @@ namespace OpenSim.Framework.Servers.HttpServer Request = pRequest; RequestTime = System.Environment.TickCount; RequestID = UUID.Random(); - GenContextHash(); +// GenContextHash(); + contextHash = HttpContext.contextID; } internal void DoHTTPGruntWork(BaseHttpServer server, Hashtable responsedata) @@ -132,8 +136,9 @@ namespace OpenSim.Framework.Servers.HttpServer { if (b1.contextHash != b2.contextHash) return false; - bool b = Object.ReferenceEquals(b1.HttpContext, b2.HttpContext); - return b; +// bool b = Object.ReferenceEquals(b1.HttpContext, b2.HttpContext); +// return b; + return true; } public int GetHashCode(PollServiceHttpRequest b2) diff --git a/bin/HttpServer_OpenSim.dll b/bin/HttpServer_OpenSim.dll index 2730e17ad1..bc28ce4537 100755 Binary files a/bin/HttpServer_OpenSim.dll and b/bin/HttpServer_OpenSim.dll differ diff --git a/bin/HttpServer_OpenSim.pdb b/bin/HttpServer_OpenSim.pdb index 8299d80ef0..ba6b0b0298 100644 Binary files a/bin/HttpServer_OpenSim.pdb and b/bin/HttpServer_OpenSim.pdb differ