Monero
Loading...
Searching...
No Matches
network_throttle.cpp File Reference

interface for throttling of connection (count and rate-limit speed etc) More...

Include dependency graph for network_throttle.cpp:

Namespaces

namespace  epee
 TODO: (mj-xmr) This will be reduced in an another PR.
namespace  epee::net_utils

Detailed Description

interface for throttling of connection (count and rate-limit speed etc)

Author
rfree (current maintainer in monero.cc project)

Throttling work by:
1) taking note of all traffic (hooks added e.g. to connection class) and measuring speed
2) depending on that information we sleep before sending out data (or send smaller portions of data)
3) depending on the information we can also sleep before sending requests or ask for smaller sets of data to download