searxng/tests/unit
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
..
engines [fix] wikidata engine: faster processing, remove one HTTP redirection. 2019-07-29 07:39:39 +02:00
__init__.py [mod] remove buildout/makefile infrastructure 2016-01-10 19:23:10 +01:00
test_answerers.py [enh] add quick answer functionality with an example answerer 2016-11-19 20:53:51 +01:00
test_plugins.py [enh] py3 compatibility 2017-05-15 12:02:30 +02:00
test_preferences.py [fix] preference query parameter decoding (#1599) 2019-07-17 09:42:40 +02:00
test_query.py [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
test_results.py [mod] remove buildout/makefile infrastructure 2016-01-10 19:23:10 +01:00
test_search.py [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
test_utils.py [fix] fix flickr_noapi decoding (#1655) 2019-08-02 13:37:13 +02:00
test_webapp.py [enh] Add Server-Timing header (#1637) 2019-07-17 10:38:45 +02:00