summaryrefslogtreecommitdiff
path: root/iterator/iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'iterator/iterator.h')
-rw-r--r--iterator/iterator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/iterator/iterator.h b/iterator/iterator.h
index dc5e57527d87..a9e58569fcf3 100644
--- a/iterator/iterator.h
+++ b/iterator/iterator.h
@@ -94,8 +94,6 @@ extern int UNKNOWN_SERVER_NICENESS;
* Equals RTT_MAX_TIMEOUT
*/
#define USEFUL_SERVER_TOP_TIMEOUT 120000
-/** number of retries on outgoing queries */
-#define OUTBOUND_MSG_RETRY 5
/** RTT band, within this amount from the best, servers are chosen randomly.
* Chosen so that the UNKNOWN_SERVER_NICENESS falls within the band of a
* fast server, this causes server exploration as a side benefit. msec. */
@@ -139,6 +137,9 @@ struct iter_env {
lock_basic_type queries_ratelimit_lock;
/** number of queries that have been ratelimited */
size_t num_queries_ratelimited;
+
+ /** number of retries on outgoing queries */
+ int outbound_msg_retry;
};
/**