Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
DNS testing tools
Remoh
Commits
5fe2798a
Commit
5fe2798a
authored
Jun 03, 2020
by
Alexandre
Browse files
Comment on MAX_DURATION value and usage
parent
ca994f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
homer.py
View file @
5fe2798a
...
...
@@ -1251,7 +1251,12 @@ for connectTo in ip_set:
done
=
0
current
=
conn
.
pipelining_init_pending
(
max_in_flight
)
while
done
<
tests
:
if
time
.
time
()
>
start
+
MAX_DURATION
:
if
time
.
time
()
>
start
+
MAX_DURATION
:
# if we send thousands of requests
# MAX_DURATION will be reached
# need to increase MAX_DURATION based
# on the number of queries
# or to define a relation such as
# f(tests) = MAX_DURATION
print
(
"Elapsed time too long, %i requests never got a reply"
%
(
tests
-
done
))
break
id
=
conn
.
read_result
(
conn
,
conn
.
pending
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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