mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +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:
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
private Scene m_scene;
|
||||
private CapsDataThrottler m_throttler = new CapsDataThrottler(100000, 1400000,10000);
|
||||
public PollServiceTextureEventArgs(UUID pId, Scene scene) :
|
||||
base(null, "", null, null, null, pId, int.MaxValue)
|
||||
base(null, "", null, null, null, null, pId, int.MaxValue)
|
||||
{
|
||||
m_scene = scene;
|
||||
// x is request id, y is userid
|
||||
@@ -236,6 +236,9 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Drop = (x, y) => { lock (responses) responses.Remove(x); };
|
||||
|
||||
GetEvents = (x, y) =>
|
||||
{
|
||||
lock (responses)
|
||||
@@ -423,7 +426,6 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
internal sealed class CapsDataThrottler
|
||||
{
|
||||
|
||||
private volatile int currenttime = 0;
|
||||
private volatile int lastTimeElapsed = 0;
|
||||
private volatile int BytesSent = 0;
|
||||
|
||||
Reference in New Issue
Block a user