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.