Slow down fetching to avoid Sorceror's Apprentice syndrome.

This commit is contained in:
JoelKatz
2013-08-18 20:42:09 -07:00
committed by Vinnie Falco
parent 1081dda5cd
commit 3cf54bb3cd

View File

@@ -8,7 +8,7 @@ SETUP_LOG (InboundLedger)
// VFALCO TODO replace macros
#define LA_DEBUG
#define LEDGER_ACQUIRE_TIMEOUT 2000 // millisecond for each ledger timeout
#define LEDGER_ACQUIRE_TIMEOUT 6000 // millisecond for each ledger timeout
#define LEDGER_TIMEOUT_COUNT 10 // how many timeouts before we giveup
#define LEDGER_TIMEOUT_AGGRESSIVE 6 // how many timeouts before we get aggressive