getlantern / browsersunbounded

Interoperable browser-based P2P proxies for censorship circumvention
GNU General Public License v3.0
11 stars 0 forks source link

Add a backoff and/or other intelligent logic for throttling Broflake QUIC redials #175

Open noahlevenson opened 1 year ago

noahlevenson commented 1 year ago

Broflake aggressively tries to maintain a QUIC connection with the egress server at all times. If Broflake loses its QUIC connection, it redials the egress server on a loop until it reacquires one.

This can get pretty noisy. At minimum, the Broflake QUIC dialer shouldn't be dialing unless it knows there to be > 0 upstream peers connected. (This can be determined by listening for the appropriate IPC messages).

What's the right strategy for maximizing uptime while minimizing pointless redials?