# Buggy code
def run():
    app.run(
        debug=settings["general"]["debug"],
        use_debugger=settings["general"]["debug"],
        port=settings["server"]["port"],
        host=settings["server"]["bind_address"],
    )


# Traceback (IOError)
ERROR:searx.search:engine crash: ixquick
Traceback (most recent call last):
File "/root/searx/searx/search.py", line 40, in search_request_wrapper
ret = fn(url, **kwargs)
File "/root/searx/searx/poolrequests.py", line 100, in post
return request('post', url, data=data, **kwargs)
File "/root/searx/searx/poolrequests.py", line 79, in request
response = session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 459, in send
raise ConnectTimeout(e, request=request)
ConnectTimeout: HTTPSConnectionPool(host='www.ixquick.com', port=443): Max retries exceeded with url: /do/search (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f067c582350>, 'Connection to www.ixquick.com timed out. (connect timeout=6.0)'))
DEBUG:requests.packages.urllib3.connectionpool:"GET /search?p=%D1%80%D0%B0%D1%81%D1%88%D0%B8%D1%84%D1%80%D0%BE%D0%B2%D0%BA%D0%B0+%D0%BA%D0%BE%D0%B4%D0%BE%D0%B2+%D0%BE%D1%88%D0%B8%D0%B1%D0%BE%D0%BA+obd-2+%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C&amp;b=1&amp;fl=1&amp;vl=lang_en HTTP/1.1" 200 None
DEBUG:requests.packages.urllib3.connectionpool:"POST /do/search HTTP/1.1" 200 None
WARNING:searx.search:engine timeout: ixquick
INFO:werkzeug:127.0.0.1 - - [14/Aug/2016 19:49:35] "GET /?q=%D1%80%D0%B0%D1%81%D1%88%D0%B8%D1%84%D1%80%D0%BE%D0%B2%D0%BA%D0%B0+%D0%BA%D0%BE%D0%B4%D0%BE%D0%B2+%D0%BE%D1%88%D0%B8%D0%B1%D0%BE%D0%BA+obd-2+%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C&amp;category_general=1&amp;format=rss&amp;pageno=1 HTTP/1.0" 200 -
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 659, in inner
srv.serve_forever()
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 499, in serve_forever
HTTPServer.serve_forever(self)
File "/usr/lib64/python2.7/SocketServer.py", line 238, in serve_forever
self._handle_request_noblock()
File "/usr/lib64/python2.7/SocketServer.py", line 297, in _handle_request_noblock
self.handle_error(request, client_address)
File "/usr/lib64/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib64/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib64/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.7/SocketServer.py", line 649, in __init__
self.handle()
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 216, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "/usr/lib64/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 251, in handle_one_request
return self.run_wsgi()
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 184, in execute
write(data)
File "/usr/lib/python2.7/site-packages/werkzeug/serving.py", line 152, in write
self.send_header(key, value)
File "/usr/lib64/python2.7/BaseHTTPServer.py", line 401, in send_header
self.wfile.write("%s: %s\r\n" % (keyword, value))
IOError: [Errno 32] Broken pipe

ERROR:searx.search:engine crash: ixquick
Traceback (most recent call last):
File "/root/searx/searx/search.py", line 40, in search_request_wrapper
ret = fn(url, **kwargs)
File "/root/searx/searx/poolrequests.py", line 100, in post
return request('post', url, data=data, **kwargs)
File "/root/searx/searx/poolrequests.py", line 79, in request
response = session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 459, in send
raise ConnectTimeout(e, request=request)
ConnectTimeout: HTTPSConnectionPool(host='www.ixquick.com', port=443): Max retries exceeded with url: /do/search (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f067c4e1710>, 'Connection to www.ixquick.com timed out. (connect timeout=6.0)'))

# Fixed code
def run():
    app.run(
        debug=settings["general"]["debug"],
        use_debugger=settings["general"]["debug"],
        port=settings["server"]["port"],
        host=settings["server"]["bind_address"],
        threaded=True,
    )