diff options
author | Rider Linden <none@none> | 2015-04-15 11:54:18 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-04-15 11:54:18 -0700 |
commit | 109e2db131514de43a2d61da1cc4ee78dc89f858 (patch) | |
tree | 217ca4b42ee516dab39198661e2bc91514a5a8e5 /indra/llmessage/llcircuit.h | |
parent | 176d8cd268611e28c07a462df3027f4872456e5a (diff) | |
parent | 82ae214f6a367e17dd335e80e2444cf672108821 (diff) |
Merge
Diffstat (limited to 'indra/llmessage/llcircuit.h')
-rwxr-xr-x | indra/llmessage/llcircuit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llmessage/llcircuit.h b/indra/llmessage/llcircuit.h index 5b109fc218..b8021bc9f0 100755 --- a/indra/llmessage/llcircuit.h +++ b/indra/llmessage/llcircuit.h @@ -60,6 +60,7 @@ const U8 LL_PACKET_ID_SIZE = 6; const S32 LL_MAX_RESENT_PACKETS_PER_FRAME = 100; const S32 LL_MAX_ACKED_PACKETS_PER_FRAME = 200; +const F32 LL_COLLECT_ACK_TIME_MAX = 2.f; // // Prototypes and Predefines @@ -237,6 +238,7 @@ protected: packet_time_map mPotentialLostPackets; packet_time_map mRecentlyReceivedReliablePackets; std::vector<TPACKETID> mAcks; + F32 mAckCreationTime; // first ack creation time typedef std::map<TPACKETID, LLReliablePacket *> reliable_map; typedef reliable_map::iterator reliable_iter; @@ -302,7 +304,7 @@ public: // this method is called during the message system processAcks() // to send out any acks that did not get sent already. - void sendAcks(); + void sendAcks(F32 collect_time); friend std::ostream& operator<<(std::ostream& s, LLCircuit &circuit); void getInfo(LLSD& info) const; @@ -333,6 +335,7 @@ protected: circuit_data_map mCircuitData; typedef std::set<LLCircuitData *, LLCircuitData::less> ping_set_t; // Circuits sorted by next ping time + ping_set_t mPingSet; // This variable points to the last circuit data we found to |