diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-09-18 10:03:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-09-18 10:03:57 -0400 |
commit | 781ab9eea49b07b1925d7d8dcbad06348896344e (patch) | |
tree | 6a5ec10c59617467e25863fb911689625f2467dd /src/core/or/or_connection_st.h | |
parent | 404c224c711714f014288c79257c4bfd3880905c (diff) | |
download | tor-781ab9eea49b07b1925d7d8dcbad06348896344e.tar.gz tor-781ab9eea49b07b1925d7d8dcbad06348896344e.zip |
Add flag for whether an OR conn "counts" for bootstrap tracking
We set this flag if we've launched the connection in order to
satisfy an origin circuit, or when we decide the connection _would_
satisfy an origin circuit. These are the only or_connections we
want to consider for bootstrapping: other or_connections are opened
because of client EXTEND requests, and they may succeed or fail
because of the clients' confusion or misconfiguration.
Closes #25061.
Diffstat (limited to 'src/core/or/or_connection_st.h')
-rw-r--r-- | src/core/or/or_connection_st.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/or/or_connection_st.h b/src/core/or/or_connection_st.h index 8e012a6b85..253fe67020 100644 --- a/src/core/or/or_connection_st.h +++ b/src/core/or/or_connection_st.h @@ -74,6 +74,11 @@ struct or_connection_t { unsigned int is_outgoing:1; unsigned int proxy_type:3; /**< One of PROXY_NONE...PROXY_HAPROXY */ unsigned int wide_circ_ids:1; + /** True iff a failure on this connection indicates a posssible + * bootstrapping problem. We set this as true if we notice that this + * connection could handle a pending origin circuit, or if we launch it to + * handle an origin circuit. */ + unsigned int potentially_used_for_bootstrapping:1; /** True iff this connection has had its bootstrap failure logged with * control_event_bootstrap_problem. */ unsigned int have_noted_bootstrap_problem:1; |