limit number of outbound packets if the peer can't handle it

This commit is contained in:
orignal 2025-07-19 09:25:51 -04:00
parent 8c204a4c10
commit 253a892b0f
3 changed files with 30 additions and 13 deletions

View file

@ -87,8 +87,10 @@ namespace garlic
{
std::shared_ptr<i2p::tunnel::OutboundTunnel> outboundTunnel;
std::shared_ptr<const i2p::data::Lease> remoteLease;
// for streaming only
int rtt; // RTT
uint32_t updateTime; // seconds since epoch
bool isJava; // based on choked value
};
class GarlicDestination;
@ -129,7 +131,7 @@ namespace garlic
std::shared_ptr<GarlicRoutingPath> GetSharedRoutingPath ();
void SetSharedRoutingPath (std::shared_ptr<GarlicRoutingPath> path);
GarlicDestination * GetOwner () const { return m_Owner; }
void SetOwner (GarlicDestination * owner) { m_Owner = owner; }