diff options
author | David Goulet <dgoulet@torproject.org> | 2022-02-23 15:21:40 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-02-23 15:21:40 -0500 |
commit | 45416356ed7dc5551cda491c01a4d7df1ed97a20 (patch) | |
tree | 22d04baf12f059fbe910fb4e0c65752dd27c7ef6 /src/core | |
parent | d09e58d9bf0a2c94cec886756351cb718cb31959 (diff) | |
parent | 5ee85c1fac9adbc09e0930166841c192129b2c28 (diff) | |
download | tor-45416356ed7dc5551cda491c01a4d7df1ed97a20.tar.gz tor-45416356ed7dc5551cda491c01a4d7df1ed97a20.zip |
Merge branch 'tor-gitlab/mr/488'
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/connection_or.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/or/connection_or.c b/src/core/or/connection_or.c index db9f93e6f6..0018b1dfd8 100644 --- a/src/core/or/connection_or.c +++ b/src/core/or/connection_or.c @@ -1316,6 +1316,13 @@ note_or_connect_failed(const or_connection_t *or_conn) tor_assert(or_conn); + if (or_conn->potentially_used_for_bootstrapping) { + /* Don't cache connection failures for connections we initiated ourself. + * If these direct connections fail, we're supposed to recognize that + * the destination is down and stop trying. See ticket 40499. */ + return; + } + ocf = or_connect_failure_find(or_conn); if (ocf == NULL) { ocf = or_connect_failure_new(or_conn); |