Settings
Help

Module checking

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.