searxng/searx
Alexandre Flament 01e2648e93 Simplify search.py, basically updated PR #518
The timeouts in settings.yml is about the total time (not only the HTTP request but also the prepare the request and parsing the response)
It was more or less the case before since the threaded_requests function ignores the thread after the timeout even the HTTP request is ended.

New / changed stats :
* page_load_time : record the HTTP request time
* page_load_count: the number of HTTP request
* engine_time : the execution total time of an engine
* engine_time_count : the number of "engine_time" measure

The avg response times in the preferences are the engine response time (engine_load_time / engine_load_count)

To sum up :
* Search.search() filters the engines that can't process the request
* Search.search() call search_multiple_requests function
* search_multiple_requests creates one thread per engine, each thread runs the search_one_request function
* search_one_request calls the request function, make the HTTP request, calls the response function, extends the result_container
* search_multiple_requests waits for the the thread to finish (or timeout)
2016-11-05 13:45:20 +01:00
..
data [enh] currency_convert engine: user can write "1 dollars in euros" instead of "1 USD in EUR". 2015-05-12 20:52:08 +02:00
engines Simplify search.py, basically updated PR #518 2016-11-05 13:45:20 +01:00
plugins Change plugin API : 2016-11-02 14:22:16 +01:00
static [fix] menu style in pointhi oscar theme 2016-11-02 12:26:54 +01:00
templates [fix] menu without js - closes #747 2016-11-01 23:12:46 +01:00
translations [enh] translation updates 2016-09-06 18:12:01 +02:00
__init__.py [mod] the environment variable SEARX_DEBUG can override the general.debug value in settings.yml 2016-10-22 21:36:13 +02:00
autocomplete.py [enh] multilingual autocomplete 2016-03-29 19:10:13 -06:00
languages.py sort languages properly 2016-04-09 18:02:12 +02:00
poolrequests.py Fix pep8 2016-05-02 19:25:09 +02:00
preferences.py [fix] links in new tabs without js ++ noopener bug fix - closes #674 2016-09-04 15:57:43 +02:00
query.py Clean up the architecture 2016-11-02 14:22:16 +01:00
results.py Clean up the architecture 2016-11-02 14:22:16 +01:00
search.py Simplify search.py, basically updated PR #518 2016-11-05 13:45:20 +01:00
settings.yml [fix] ixquick : fetch results from ixquick.eu instead of ixquick.com, close #727 2016-10-22 20:56:18 +02:00
settings_robot.yml [fix] robot test engine names 2016-09-28 22:49:29 +02:00
testing.py [fix] pep8 2016-02-27 19:07:53 +01:00
utils.py fix kickass torrents engine 2016-10-22 05:27:18 +02:00
version.py [enh] version 0.10.0 2016-09-06 18:31:25 +02:00
webapp.py Simplify search.py, basically updated PR #518 2016-11-05 13:45:20 +01:00