searxng/searx
Alexandre Flament 72029d27de
[enh] Add timeout limit per request (#1640)
The new url parameter "timeout_limit" set timeout limit defined in second.
Example "timeout_limit=1.5" means the timeout limit is 1.5 seconds.

In addition, the query can start with <[number] to set the timeout limit.

For number between 0 and 99, the unit is the second :
Example: "<30 searx" means the timeout limit is 3 seconds

For number above 100, the unit is the millisecond:
Example: "<850 searx" means the timeout is 850 milliseconds.

In addition, there is a new optional setting: outgoing.max_request_timeout.
If not set, the user timeout can't go above searx configuration (as before: the max timeout of selected engine for a query).

If the value is set, the user can set a timeout between 0 and max_request_timeout using
<[number] or timeout_limit query parameter.

Related to #1077
Updated version of PR #1413 from @isj-privacore
2019-08-02 13:50:51 +02:00
..
answerers [fix] small fixes in preferences view's text 2019-07-27 22:53:46 -07:00
data [fix] fetch google's supported languages 2019-01-06 21:31:45 -06:00
engines [fix] fix flickr_noapi decoding (#1655) 2019-08-02 13:37:13 +02:00
plugins [enh] Add preference section to two upstream plugins for simple theme integration 2019-01-07 10:48:14 +01:00
static [enh] add invidious engine. (#1657) 2019-08-02 13:25:25 +02:00
templates [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
translations [fix] escape perecent signs in translation file (#1528) 2019-07-27 09:01:02 +02:00
__init__.py Add addr setup via SEARX_BIND_ADDRESS 2019-06-17 22:42:56 +02:00
autocomplete.py [fix] never pass bangs to autocomplete suggestions 2019-07-01 17:16:02 -05:00
exceptions.py [enh] validate input and raise an exception inside search.py. The exception message is output in json and rss format. 2017-01-20 18:52:47 +01:00
languages.py fix fetch_langauges to be more accurate 2018-03-20 17:58:20 -06:00
poolrequests.py [fix] measure request duration only if total_time attribute is set - fixes autocompleter 2017-11-23 01:52:54 +01:00
preferences.py [fix] preference query parameter decoding (#1599) 2019-07-17 09:42:40 +02:00
query.py [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
results.py [fix] don't merge image results if the img_src is different 2019-07-27 08:52:30 +02:00
search.py [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
settings_robot.yml Fix ./manage.sh robot_tests (#1633) 2019-07-06 18:47:35 +02:00
settings.yml [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
testing.py .travis.yml: robot tests: remove the xvfb dependency 2019-07-13 15:49:59 +02:00
url_utils.py minor fixes of pubmed engine 2017-11-01 17:02:38 +01:00
utils.py [fix] fix flickr_noapi decoding (#1655) 2019-08-02 13:37:13 +02:00
version.py update changelog and version.py 2019-01-06 21:59:59 +01:00
webapp.py [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00