mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
add a Drop method to PollService Event handlers, Drop requests on connections known to be lost or delay event check if they are sending a response
This commit is contained in:
@@ -37,6 +37,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
public delegate Hashtable GetEventsMethod(UUID requestID, UUID pId);
|
||||
|
||||
public delegate Hashtable NoEventsMethod(UUID requestID, UUID pId);
|
||||
public delegate void DropMethod(UUID requestID, UUID pId);
|
||||
|
||||
public class PollServiceEventArgs : EventArgs
|
||||
{
|
||||
@@ -44,6 +45,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
public GetEventsMethod GetEvents;
|
||||
public NoEventsMethod NoEvents;
|
||||
public RequestMethod Request;
|
||||
public DropMethod Drop;
|
||||
public UUID Id;
|
||||
public int TimeOutms;
|
||||
public EventType Type;
|
||||
@@ -73,13 +75,14 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
RequestMethod pRequest,
|
||||
string pUrl,
|
||||
HasEventsMethod pHasEvents, GetEventsMethod pGetEvents, NoEventsMethod pNoEvents,
|
||||
UUID pId, int pTimeOutms)
|
||||
DropMethod pDrop, UUID pId, int pTimeOutms)
|
||||
{
|
||||
Request = pRequest;
|
||||
Url = pUrl;
|
||||
HasEvents = pHasEvents;
|
||||
GetEvents = pGetEvents;
|
||||
NoEvents = pNoEvents;
|
||||
Drop = pDrop;
|
||||
Id = pId;
|
||||
TimeOutms = pTimeOutms;
|
||||
Type = EventType.LongPoll;
|
||||
|
||||
Reference in New Issue
Block a user