X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fdrl_state.h;h=950ea7ec850cb957de719e9ab7130a1f622ea882;hp=7715a36389f1f95662db95217c241af7a61d630b;hb=762f4e00371f2a8e01a6cf60867f837b90460a60;hpb=f83340496f632165030cc92cd98408a87082f6b1 diff --git a/drl/drl_state.h b/drl/drl_state.h index 7715a36..950ea7e 100644 --- a/drl/drl_state.h +++ b/drl/drl_state.h @@ -31,7 +31,10 @@ #define MAX_IDENTS (1024) #define MAX_LIMITERS (128) -#define REMOTE_AWOL_THRESHOLD (5) +#define MESH_REMOTE_AWOL_THRESHOLD (5) + +//FIXME: Make this more scientific? +#define GOSSIP_REMOTE_AWOL_THRESHOLD (10 * comm->remote_node_count / comm->gossip.gossip_branch) enum transports { UDP, TCP };