summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2010-05-08 10:41:00 -0700
committerMike Perry <mikeperry-git@fscked.org>2010-05-10 13:11:47 -0700
commit0a6191cf701617d51d30c468b5987b62ad75883c (patch)
treecbc8aa058a261eef06bd34eed8efd2f607c68c84 /src/or/or.h
parent728e946efd87d5cd0a9ff073eeeb7b4fe9c3c0db (diff)
downloadtor-0a6191cf701617d51d30c468b5987b62ad75883c.tar.gz
tor-0a6191cf701617d51d30c468b5987b62ad75883c.zip
Bug 1357: Store the suspended timeout value to resume.
This prevents a spurious warning where we have a timeout just after deciding our network came back online.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index c8886cff1e..f31847408e 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3108,8 +3108,9 @@ typedef struct {
int num_recent_circs;
/** Index into circular array. */
int after_firsthop_idx;
- /** The network is not live. Timeout gathering is suspended */
- int net_suspended;
+ /** Timeout gathering is suspended if non-zero. The old timeout value
+ * is stored here in that case. */
+ build_time_t suspended_timeout;
} network_liveness_t;
/** Structure for circuit build times history */