mirror of
https://github.com/ntop/n2n.git
synced 2024-04-21 16:31:34 +00:00
fixed minor timing issues (#616)
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ int time_stamp_verify_and_update (uint64_t stamp, uint64_t * previous_stamp, int
|
||||
size_t purge_peer_list (struct peer_info ** peer_list,
|
||||
time_t purge_before);
|
||||
size_t clear_peer_list (struct peer_info ** peer_list);
|
||||
size_t purge_expired_registrations (struct peer_info ** peer_list, time_t* p_last_purge, int timeout);
|
||||
size_t purge_expired_nodes (struct peer_info **peer_list, time_t *p_last_purge, int frequency, int timeout);
|
||||
|
||||
/* Edge conf */
|
||||
void edge_init_conf_defaults (n2n_edge_conf_t *conf);
|
||||
|
||||
@@ -52,8 +52,7 @@
|
||||
* values should be at least 3*SOCKET_TIMEOUT_INTERVAL_SECS apart. */
|
||||
#define LAST_SEEN_SN_ACTIVE 20 /* sec, indicates supernodes that are proven to be active */
|
||||
#define LAST_SEEN_SN_INACTIVE 90 /* sec, indicates supernodes that are proven to be inactive: they will be purged */
|
||||
#define LAST_SEEN_SN_NEW (LAST_SEEN_SN_INACTIVE - LAST_SEEN_SN_ACTIVE) / 2 /* sec, indicates supernodes with unsure status, must be tested to check if they are active */
|
||||
|
||||
#define LAST_SEEN_SN_NEW (LAST_SEEN_SN_INACTIVE - 3 * RE_REG_AND_PURGE_FREQUENCY) /* sec, indicates supernodes with unsure status, must be tested to check if they are active */
|
||||
|
||||
#define IFACE_UPDATE_INTERVAL (30) /* sec. How long it usually takes to get an IP lease. */
|
||||
#define TRANSOP_TICK_INTERVAL (10) /* sec */
|
||||
|
||||
Reference in New Issue
Block a user