1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-05 04:40:11 +01:00
searxng/searx/templates/simple
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
..
messages [fix] fix no_results.html template of the simple theme 2017-08-12 21:15:31 +02:00
result_templates simple theme update 2018-08-14 17:21:30 +02:00
404.html [fix] use proper encoding with both py2/3 - closes #1094 2017-12-08 21:39:59 +01:00
about.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
base.html use instance_name for page title 2019-04-09 21:15:02 +02:00
categories.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
index.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
infobox.html [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
languages.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
macros.html Remove / in url_for parameter for simple theme 2017-10-18 23:45:30 -04:00
preferences.html [fix] Remove markup errors in simple template preferences file 2019-01-07 10:48:25 +01:00
results.html [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
search.html [enh] Add timeout limit per request (#1640) 2019-08-02 13:50:51 +02:00
simple.spec.txt [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
stats.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
time-range.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00