diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-12-08 23:55:11 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-12-08 23:55:11 +0100 |
commit | 8e6ae188b866431d324f12e8537f9f6c61ad5927 (patch) | |
tree | 59acb1580fa77932182d33e0ead60a04098d6483 | |
parent | 44409cb61f5677981feac10c344ea07fe20f718f (diff) | |
download | searxng-8e6ae188b866431d324f12e8537f9f6c61ad5927.tar.gz searxng-8e6ae188b866431d324f12e8537f9f6c61ad5927.zip |
[mod] search thread names
-rw-r--r-- | searx/search.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/searx/search.py b/searx/search.py index 19469cc52..5b5cc6200 100644 --- a/searx/search.py +++ b/searx/search.py @@ -36,12 +36,15 @@ number_of_searches = 0 def threaded_requests(requests): for fn, url, request_args in requests: th = threading.Thread( - target=fn, args=(url,), kwargs=request_args, name=url, + target=fn, + args=(url,), + kwargs=request_args, + name='search_request', ) th.start() for th in threading.enumerate(): - if th.name.startswith('http'): + if th.name == 'search_request': th.join() |