diff options
Diffstat (limited to 'linden/indra/llmessage/llcircuit.h')
-rw-r--r-- | linden/indra/llmessage/llcircuit.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/linden/indra/llmessage/llcircuit.h b/linden/indra/llmessage/llcircuit.h index 6df7279..e373cb1 100644 --- a/linden/indra/llmessage/llcircuit.h +++ b/linden/indra/llmessage/llcircuit.h | |||
@@ -18,7 +18,8 @@ | |||
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | * online at |
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | 23 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -50,10 +51,6 @@ | |||
50 | // | 51 | // |
51 | // Constants | 52 | // Constants |
52 | // | 53 | // |
53 | const F32 PING_INTERVAL_MAX = 100.f; | ||
54 | const F32 PING_INTERVAL_ALARM = 50.f; | ||
55 | |||
56 | |||
57 | const F32 LL_AVERAGED_PING_ALPHA = 0.2f; // relaxation constant on ping running average | 54 | const F32 LL_AVERAGED_PING_ALPHA = 0.2f; // relaxation constant on ping running average |
58 | const F32 LL_AVERAGED_PING_MAX = 2000; // msec | 55 | const F32 LL_AVERAGED_PING_MAX = 2000; // msec |
59 | const F32 LL_AVERAGED_PING_MIN = 100; // msec // IW: increased to avoid retransmits when a process is slow | 56 | const F32 LL_AVERAGED_PING_MIN = 100; // msec // IW: increased to avoid retransmits when a process is slow |
@@ -85,7 +82,8 @@ class LLSD; | |||
85 | class LLCircuitData | 82 | class LLCircuitData |
86 | { | 83 | { |
87 | public: | 84 | public: |
88 | LLCircuitData(const LLHost &host, TPACKETID in_id); | 85 | LLCircuitData(const LLHost &host, TPACKETID in_id, |
86 | const F32 circuit_heartbeat_interval, const F32 circuit_timeout); | ||
89 | ~LLCircuitData(); | 87 | ~LLCircuitData(); |
90 | 88 | ||
91 | S32 resendUnackedPackets(const F64 now); | 89 | S32 resendUnackedPackets(const F64 now); |
@@ -283,6 +281,9 @@ protected: | |||
283 | S32 mCurrentResendCount; // Number of resent packets since last spam | 281 | S32 mCurrentResendCount; // Number of resent packets since last spam |
284 | LLStatRate mOutOfOrderRate; // Rate of out of order packets coming in. | 282 | LLStatRate mOutOfOrderRate; // Rate of out of order packets coming in. |
285 | U32 mLastPacketGap; // Gap in sequence number of last packet. | 283 | U32 mLastPacketGap; // Gap in sequence number of last packet. |
284 | |||
285 | const F32 mHeartbeatInterval; | ||
286 | const F32 mHeartbeatTimeout; | ||
286 | }; | 287 | }; |
287 | 288 | ||
288 | 289 | ||
@@ -292,7 +293,7 @@ class LLCircuit | |||
292 | { | 293 | { |
293 | public: | 294 | public: |
294 | // CREATORS | 295 | // CREATORS |
295 | LLCircuit(); | 296 | LLCircuit(const F32 circuit_heartbeat_interval, const F32 circuit_timeout); |
296 | ~LLCircuit(); | 297 | ~LLCircuit(); |
297 | 298 | ||
298 | // ACCESSORS | 299 | // ACCESSORS |
@@ -345,5 +346,9 @@ protected: | |||
345 | // optimize the many, many times we call findCircuit. This may be | 346 | // optimize the many, many times we call findCircuit. This may be |
346 | // set in otherwise const methods, so it is declared mutable. | 347 | // set in otherwise const methods, so it is declared mutable. |
347 | mutable LLCircuitData* mLastCircuit; | 348 | mutable LLCircuitData* mLastCircuit; |
349 | |||
350 | private: | ||
351 | const F32 mHeartbeatInterval; | ||
352 | const F32 mHeartbeatTimeout; | ||
348 | }; | 353 | }; |
349 | #endif | 354 | #endif |