Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Georg Koppen
sbws
Commits
6926ce9e
Unverified
Commit
6926ce9e
authored
Mar 11, 2020
by
Georg Koppen
Browse files
Bug 33600: `max_pending_results` is not directly used in `main_loop`
parent
c6f35782
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/core/scanner.py
View file @
6926ce9e
...
...
@@ -460,7 +460,7 @@ def result_putter_error(target):
def
main_loop
(
args
,
conf
,
controller
,
relay_list
,
circuit_builder
,
result_dump
,
relay_prioritizer
,
destinations
,
max_pending_results
,
pool
):
relay_prioritizer
,
destinations
,
pool
):
"""Starts and reuse the threads that measure the relays forever.
It starts a loop that will be run while there is not and event signaling
...
...
@@ -701,8 +701,7 @@ def run_speedtest(args, conf):
max_pending_results
=
conf
.
getint
(
'scanner'
,
'measurement_threads'
)
pool
=
Pool
(
max_pending_results
)
try
:
main_loop
(
args
,
conf
,
controller
,
rl
,
cb
,
rd
,
rp
,
destinations
,
max_pending_results
,
pool
)
main_loop
(
args
,
conf
,
controller
,
rl
,
cb
,
rd
,
rp
,
destinations
,
pool
)
except
KeyboardInterrupt
:
log
.
info
(
"Interrupted by the user."
)
stop_threads
(
signal
.
SIGINT
,
None
)
...
...
Georg Koppen
@gk
mentioned in issue
legacy/trac#33600 (moved)
·
Jun 13, 2020
mentioned in issue
legacy/trac#33600 (moved)
mentioned in issue legacy/trac#33600
Toggle commit list
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