Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
doctor
Commits
8074fc57
Commit
8074fc57
authored
Apr 14, 2021
by
David Goulet
🐼
Browse files
fallbackdir: Fix how we test with Stem
Closes
#40023
Signed-off-by:
David Goulet
<
dgoulet@torproject.org
>
parent
f85b5952
Changes
1
Hide whitespace changes
Inline
Side-by-side
fallback_directories.py
View file @
8074fc57
...
...
@@ -39,11 +39,6 @@ def main():
issues
.
append
(
'%s => ORPort is unreachable (%s:%i)'
%
(
relay
.
fingerprint
,
relay
.
address
,
relay
.
or_port
))
continue
if
not
util
.
is_reachable
(
relay
.
address
,
relay
.
dir_port
):
log
.
info
(
'%s DirPort unreachable'
%
relay
.
fingerprint
)
issues
.
append
(
'%s => DirPort is unreachable (%s:%i)'
%
(
relay
.
fingerprint
,
relay
.
address
,
relay
.
dir_port
))
continue
if
relay
.
orport_v6
and
not
util
.
is_reachable
(
relay
.
orport_v6
[
0
],
relay
.
orport_v6
[
1
]):
log
.
info
(
'%s IPv6 ORPort unreachable'
%
relay
.
fingerprint
)
issues
.
append
(
'%s => IPv6 ORPort is unreachable (%s:%i)'
%
(
relay
.
fingerprint
,
relay
.
orport_v6
[
0
],
relay
.
orport_v6
[
1
]))
...
...
@@ -51,11 +46,11 @@ def main():
try
:
start
=
time
.
time
()
downloader
.
get_
consensus
(
endpoints
=
[(
relay
.
address
,
relay
.
di
r_port
)]).
run
()
downloader
.
get_
server_descriptors
(
fingerprints
=
[
relay
.
fingerprint
],
endpoints
=
[
stem
.
ORPort
(
relay
.
address
,
relay
.
o
r_port
)]).
run
()
download_time
=
time
.
time
()
-
start
log
.
info
(
'%s download time was %0.1f seconds'
%
(
relay
.
fingerprint
,
download_time
))
except
Exception
as
exc
:
issues
.
append
(
'%s => Unable to download from
Dir
Port (%s)'
%
(
relay
.
fingerprint
,
exc
))
issues
.
append
(
'%s => Unable to download from
OR
Port
%d
(%s)'
%
(
relay
.
fingerprint
,
relay
.
or_port
,
exc
))
continue
if
download_time
>
15
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment