diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceWorkerThread.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceWorkerThread.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceWorkerThread.cs index 4c0be78..24205eb 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceWorkerThread.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceWorkerThread.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
44 | private readonly BaseHttpServer m_server; | 44 | private readonly BaseHttpServer m_server; |
45 | private BlockingQueue<PollServiceHttpRequest> m_request; | 45 | private BlockingQueue<PollServiceHttpRequest> m_request; |
46 | private bool m_running = true; | 46 | private bool m_running = true; |
47 | private int m_timeout = 25000; | 47 | private int m_timeout = 250; |
48 | 48 | ||
49 | 49 | ||
50 | 50 | ||
@@ -71,14 +71,14 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
71 | 71 | ||
72 | Hashtable responsedata = req.PollServiceArgs.GetEvents(req.PollServiceArgs.Id, str.ReadToEnd()); | 72 | Hashtable responsedata = req.PollServiceArgs.GetEvents(req.PollServiceArgs.Id, str.ReadToEnd()); |
73 | m_server.DoHTTPGruntWork(responsedata, | 73 | m_server.DoHTTPGruntWork(responsedata, |
74 | new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request))); | 74 | new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request),req.HttpContext)); |
75 | } | 75 | } |
76 | else | 76 | else |
77 | { | 77 | { |
78 | if ((Environment.TickCount - req.RequestTime) > m_timeout) | 78 | if ((Environment.TickCount - req.RequestTime) > m_timeout) |
79 | { | 79 | { |
80 | m_server.DoHTTPGruntWork(req.PollServiceArgs.NoEvents(), | 80 | m_server.DoHTTPGruntWork(req.PollServiceArgs.NoEvents(), |
81 | new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request))); | 81 | new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request),req.HttpContext)); |
82 | } | 82 | } |
83 | else | 83 | else |
84 | { | 84 | { |