Make the DHT timeouts configuration parameters.
[quix0rs-apt-p2p.git] / test.py
diff --git a/test.py b/test.py
index 673d1bc71090e04324d63f4f82ec80871c640698..d83ccf18b7bc8959b4cdece4cfba901ac29ab191 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -477,6 +477,17 @@ BUCKET_STALENESS = 1h
 # expire entries older than this
 KEY_EXPIRE = 1h
 
+# Timeout KRPC requests to nodes after this time.
+KRPC_TIMEOUT = 14s
+
+# KRPC requests are resent using exponential backoff starting with this delay.
+# The request will first be resent after the delay set here.
+# The request will be resent again after twice the delay set here. etc.
+# e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will
+# be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will
+# timeout at 14.
+KRPC_INITIAL_DELAY = 2s
+
 # whether to spew info about the requests/responses in the protocol
 SPEW = yes
 """