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. |
||
---|---|---|
.. | ||
models | ||
static | ||
templates | ||
utils | ||
__init__.py | ||
__main__.py | ||
filter.py | ||
request.py | ||
routes.py |