on master help sign in
[mod] search thread names
commit8e6ae188b866431d324f12e8537f9f6c61ad5927 authorAdam Tauber <asciimoo@gmail.com> dateMon 8 Dec 2014, 23:55 (12 years ago) parent44409cb
1 file changed+5−2
searx/search.py+5−2
searx/search.py+5−2
@@ -36,12 +36,15 @@ number_of_searches = 0
3636def threaded_requests(requests):
3737 for fn, url, request_args in requests:
3838 th = threading.Thread(
39− target=fn, args=(url,), kwargs=request_args, name=url,
39+ target=fn,
40+ args=(url,),
41+ kwargs=request_args,
42+ name='search_request',
4043 )
4144 th.start()
4245
4346 for th in threading.enumerate():
44− if th.name.startswith('http'):
47+ if th.name == 'search_request':
4548 th.join()
4649
4750