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.