• Alexandre Flament's avatar
    [enh] Add timeout limit per request (#1640) · 72029d27
    Alexandre Flament authored
    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
    72029d27
Name
Last commit
Last update
dockerfiles Loading commit data...
examples Loading commit data...
searx Loading commit data...
tests Loading commit data...
utils Loading commit data...
.codecov.yml Loading commit data...
.coveragerc Loading commit data...
.dockerignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.landscape.yaml Loading commit data...
.travis.yml Loading commit data...
AUTHORS.rst Loading commit data...
CHANGELOG.rst Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
README.rst Loading commit data...
babel.cfg Loading commit data...
manage.sh Loading commit data...
requirements-dev.txt Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...