whoogle-search/app
Ben Busby c51dad7529 Add check for Tor socket on init, improve Tor error handling
Initializing the app sends a heartbeat request to Tor to check for
availability, and updates the home page config options accordingly. This
heartbeat is sent on every request, to ensure Tor support can be
reconfigured without restarting the entire app.

If Tor support is enabled, and a subsequent request fails, then a new
TorError exception is raised, and the Tor feature is disabled until a
valid connection is restored.

The max attempts has been updated to 10, since 5 seemed a bit too low
for how quickly the attempts go by.
2020-10-25 21:14:20 -04:00
..
models Add tor and http/socks proxy support 2020-10-25 18:17:40 -04:00
static Add tor and http/socks proxy support 2020-10-25 18:17:40 -04:00
templates Add check for Tor socket on init, improve Tor error handling 2020-10-25 21:14:20 -04:00
utils Add check for Tor socket on init, improve Tor error handling 2020-10-25 21:14:20 -04:00
__init__.py Add check for Tor socket on init, improve Tor error handling 2020-10-25 21:14:20 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Fix improper header styling, remove shopping tab links 2020-10-25 13:52:30 -04:00
request.py Add check for Tor socket on init, improve Tor error handling 2020-10-25 21:14:20 -04:00
routes.py Add check for Tor socket on init, improve Tor error handling 2020-10-25 21:14:20 -04:00