mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Seems nothing actually need the request body for getevents. so change
control flag to false
This commit is contained in:
@@ -46,8 +46,14 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
public RequestMethod Request;
|
||||
public UUID Id;
|
||||
public int TimeOutms;
|
||||
public EventType Type;
|
||||
public bool GetEventsNeedsRequest = true;
|
||||
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
|
||||
{
|
||||
|
||||
@@ -337,10 +337,11 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
if (req.PollServiceArgs.HasEvents(req.RequestID, req.PollServiceArgs.Id))
|
||||
{
|
||||
string strreq = "";
|
||||
if (req.PollServiceArgs.GetEventsNeedsRequest)
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user