Module checking

Source
Expand description

This module contains the code that actually runs checks on bridges

Constants§

CHANNEL_SIZE 🔒
The amount of messages our channels will be able to store in them while in transit
MAX_CONNECTIONS 🔒
The maximum number of open connections to relays at any given time
RECEIVE_TIMEOUT
The maximum amount of time we wait for a response from a channel before giving up. This is important to avoid getting the program stuck

Functions§

build_common_tor_client
Build a TorClient that is intended to be used purely for creating isolated clients off of.
build_pt_bridge_config 🔒
Return a TorClientConfigBuilder which is set to use a pluggable transport for all connections
check_failed_bridges_task
Task which checks if failed bridges have come up online
continuous_check
Function which keeps track of the state of all the bridges given to it
detect_bridges_going_down
Task which checks if online bridges have gone down
get_failed_bridges
Calculates a list of bridge lines that have no channels
is_bridge_online 🔒
Attempt to create a Channel to a provided bridge
is_bridge_still_online 🔒
Waits for given channel to expire and sends this info through specified channel
main_test
Main function to unite everything together
test_bridges 🔒
Contains the main logic for testing each bridge.