to try to prevent router overloads, make (MAX_RECONNECTIONS_PER_PULSE * RECONNECT_PERIOD_MSEC) smaller.
This commit is contained in:
parent
ce7b2521a3
commit
893b0c10a3
|
@ -93,9 +93,9 @@ enum
|
||||||
/* when few peers are available, keep idle ones this long */
|
/* when few peers are available, keep idle ones this long */
|
||||||
MAX_UPLOAD_IDLE_SECS = (60 * 10),
|
MAX_UPLOAD_IDLE_SECS = (60 * 10),
|
||||||
|
|
||||||
/* set this too high and there will be a lot of churn.
|
/* if this * RECONNECT_PERIOD_MSEC is too high, routers die.
|
||||||
* set it too low and you'll get peers too slowly */
|
* if this * RECONNECT_PERIOD_MSEC it too low, peers come slow. */
|
||||||
MAX_RECONNECTIONS_PER_PULSE = 2,
|
MAX_RECONNECTIONS_PER_PULSE = 1,
|
||||||
|
|
||||||
/* corresponds to ut_pex's added.f flags */
|
/* corresponds to ut_pex's added.f flags */
|
||||||
ADDED_F_ENCRYPTION_FLAG = 1,
|
ADDED_F_ENCRYPTION_FLAG = 1,
|
||||||
|
|
Loading…
Reference in New Issue