Project

General

Profile

Bug #16900

Inconsistent behavior when 2nd network interface goes up or down

Added by sajolida 5 months ago. Updated 4 months ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Tor configuration
Target version:
-
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

When I'm using both an Ethernet cable and a Wi-Fi, every change in connectivity has a different behavior:

  • While the Wi-Fi remains connected
    • When the Ethernet cable goes down: the Tor connectivity breaks for a very long time (more than 60 s)
    • When the Ethernet cable goes up: the Tor connectivity breaks only for 5-10 s
  • While the Ethernet cable remains connected
    • When the Wi-Fi goes down: the onion icon goes off but the Tor connectivity is not interrupted
    • When the Wi-Fi goes up: the onion icon goes on and the Tor connectivity is not interrupted

We should fix:

  • The break of connectivity when the Ethernet cable goes down but Wi-Fi remains connected
  • The inconsistency in the display of the onion icon when the Wi-Fi goes down but the Ethernet cable remains connected

History

#1 Updated by intrigeri 4 months ago

  • Status changed from New to Confirmed

Indeed, lots of our code assumes a single network interface. I guess the solution would be essentially this:

  • only trigger post-up behavior if there's no other active network interface (or perhaps even better: if Tor is not working; so that we essentially ignore an active network interface with broken Internet connectivity)
  • only trigger post-down behaviour if there's no other active network interface

Also available in: Atom PDF