Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

fix gevent's monkey patch position

Martin Zimmermanncbdc1e1e7683
diff --git a/searx/webapp.py b/searx/webapp.py
index 000543e06..2b50d5f13 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -17,6 +17,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
(C) 2013- by Adam Tauber, <[email protected]>
'''
+from gevent import monkey; monkey.patch_all()
+
+
if __name__ == '__main__':
from sys import path
from os.path import realpath, dirname
@@ -473,9 +476,6 @@ def favicon():
def run():
- from gevent import monkey
- monkey.patch_all()
-
app.run(
debug=settings['server']['debug'],
use_debugger=settings['server']['debug'],