summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authordalf <alex@al-f.net>2015-01-21 11:33:16 +0100
committerdalf <alex@al-f.net>2015-01-21 11:33:16 +0100
commitd07cfd9089d05a6a81109518f03ba82660a4aef7 (patch)
tree4f3ee34f8260e83697fdf50e455c2aea840df090 /searx/search.py
parenta865e6672fa2a289937ff378e8893c19f71c5e0c (diff)
downloadsearxng-d07cfd9089d05a6a81109518f03ba82660a4aef7.tar.gz
searxng-d07cfd9089d05a6a81109518f03ba82660a4aef7.zip
[enh] use one single http connection pool : improve response time. close #100
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/search.py b/searx/search.py
index 0324d4aaf..b6cf84e94 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -15,9 +15,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
'''
-import requests as requests_lib
import threading
import re
+import searx.poolrequests as requests_lib
from itertools import izip_longest, chain
from operator import itemgetter
from Queue import Queue
@@ -31,7 +31,6 @@ from searx.utils import gen_useragent
from searx.query import Query
from searx import logger
-
logger = logger.getChild('search')
number_of_searches = 0