Document peer load warning behavior

This commit is contained in:
Vinnie Falco
2013-07-09 12:15:03 -07:00
parent 8d4f8b3fa3
commit d33be3d804
2 changed files with 10 additions and 2 deletions

View File

@@ -250,4 +250,6 @@ A node is "full below" if we believe we have (either in the database or
node in a hash tree. When trying to acquire a hash tree/map, if a node is node in a hash tree. When trying to acquire a hash tree/map, if a node is
full below, we know not to bother with anything below that node. full below, we know not to bother with anything below that node.
The fullBelowCache is a cache of hashes of nodes that are full below. The fullBelowCache is a cache of hashes of nodes that are full below. Which means
there are no missing children

View File

@@ -65,7 +65,6 @@ enum LoadType
class LoadSource class LoadSource
{ {
public: public:
// VFALCO TODO Why even bother with a warning? Why can't we just drop?
// VFALCO TODO Use these dispositions // VFALCO TODO Use these dispositions
/* /*
enum Disposition enum Disposition
@@ -201,6 +200,13 @@ private:
This object creates an associated thread to maintain a clock. This object creates an associated thread to maintain a clock.
When the server is overloaded by a particular peer it issues a warning
first. This allows friendly peers to reduce their consumption of resources,
or disconnect from the server.
The warning system is used instead of merely dropping, because hostile
peers can just reconnect anyway.
@see LoadSource, LoadType @see LoadSource, LoadType
*/ */
class ILoadManager class ILoadManager