X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=test.py;h=d83ccf18b7bc8959b4cdece4cfba901ac29ab191;hp=673d1bc71090e04324d63f4f82ec80871c640698;hb=dbcf7d0324c5ddee23bf170695e173fdff5a2c0e;hpb=8e5874b77f6b3d6e008c60001b5f49420e0b404b diff --git a/test.py b/test.py index 673d1bc..d83ccf1 100755 --- 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 """