Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
commit
b07b29c247
|
@ -317,6 +317,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
StreamReader reader = new StreamReader(requestStream, encoding);
|
||||
|
||||
string requestBody = reader.ReadToEnd();
|
||||
reader.Close();
|
||||
|
||||
Hashtable keysvals = new Hashtable();
|
||||
Hashtable headervals = new Hashtable();
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
public delegate void RequestMethod(UUID requestID, Hashtable request);
|
||||
public delegate bool HasEventsMethod(UUID requestID, UUID pId);
|
||||
|
||||
public delegate Hashtable GetEventsMethod(UUID requestID, UUID pId, string request);
|
||||
public delegate Hashtable GetEventsMethod(UUID requestID, UUID pId);
|
||||
|
||||
public delegate Hashtable NoEventsMethod(UUID requestID, UUID pId);
|
||||
|
||||
|
@ -47,13 +47,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
public UUID Id;
|
||||
public int TimeOutms;
|
||||
public EventType Type;
|
||||
// must be set true for cases where GetEvents needs to access the request body
|
||||
// at each pool. http can start processing before having the full body
|
||||
// but not sure if this is active for poll events
|
||||
// if original coder thinked its needed i keep it
|
||||
// if the Event has a Request method this seems to smoke for now
|
||||
// seems for now nothing actually uses this so default to false
|
||||
public bool GetEventsNeedsRequestBody = false;
|
||||
|
||||
public enum EventType : int
|
||||
{
|
||||
|
|
|
@ -336,23 +336,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
{
|
||||
if (req.PollServiceArgs.HasEvents(req.RequestID, req.PollServiceArgs.Id))
|
||||
{
|
||||
string strreq = "";
|
||||
if (req.PollServiceArgs.GetEventsNeedsRequestBody)
|
||||
{
|
||||
try
|
||||
{
|
||||
// should we try to seek back? fear we can't
|
||||
str = new StreamReader(req.Request.Body);
|
||||
strreq = str.ReadToEnd();
|
||||
str.Close();
|
||||
}
|
||||
catch
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id, strreq);
|
||||
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id);
|
||||
|
||||
if (responsedata == null)
|
||||
continue;
|
||||
|
|
|
@ -419,7 +419,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
}
|
||||
}
|
||||
|
||||
public Hashtable GetEvents(UUID requestID, UUID pAgentId, string request)
|
||||
public Hashtable GetEvents(UUID requestID, UUID pAgentId)
|
||||
{
|
||||
if (DebugLevel >= 2)
|
||||
m_log.DebugFormat("POLLED FOR EQ MESSAGES BY {0} in {1}", pAgentId, m_scene.RegionInfo.RegionName);
|
||||
|
|
|
@ -160,7 +160,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
lock (responses)
|
||||
return responses.ContainsKey(x);
|
||||
};
|
||||
GetEvents = (x, y, s) =>
|
||||
GetEvents = (x, y) =>
|
||||
{
|
||||
lock (responses)
|
||||
{
|
||||
|
|
|
@ -150,7 +150,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
base(null, null, null, null, pId, int.MaxValue)
|
||||
{
|
||||
HasEvents = (x, y) => { lock (responses) return responses.ContainsKey(x); };
|
||||
GetEvents = (x, y, s) =>
|
||||
GetEvents = (x, y) =>
|
||||
{
|
||||
lock (responses)
|
||||
{
|
||||
|
|
|
@ -444,7 +444,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
|||
}
|
||||
}
|
||||
}
|
||||
private Hashtable GetEvents(UUID requestID, UUID sessionID, string request)
|
||||
private Hashtable GetEvents(UUID requestID, UUID sessionID)
|
||||
{
|
||||
UrlData url = null;
|
||||
RequestData requestData = null;
|
||||
|
|
Loading…
Reference in New Issue