[enh] use one single http connection pool : improve response time. close #100

This commit is contained in:
dalf 2015-01-21 11:33:16 +01:00
parent a865e6672f
commit d07cfd9089
5 changed files with 65 additions and 5 deletions

View file

@ -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