Opened 13 years ago

Last modified 8 years ago

#437 closed defect (Implemented)

Tor tries to connect to a TrackHostExits host/exit pair indefinitely

Reported by: SnowKate709 Owned by: arma
Priority: Low Milestone: 0.2.0.x-rc
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: SnowKate709, arma, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When TrackHostExits is used and an exit is chosen for the site that's being connected to, if the exit fails to connect
to the site but is still running, Tor will attempt to connect to the site through that exit node through different
circuits and continue to fail to connect into all of eternity, until it finally does manage to make a connection, or
until the stream is closed.

Tor should be able to determine that the exit node is no longer capable of making a connection to the specified site,
and forget the current exit and use another after failing it's connection attempts for some extended period of time.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (9)

comment:1 Changed 13 years ago by phobos

Is this still occurring in

comment:2 Changed 13 years ago by nickm

Re-opening. This is a real bug, even if the bug reporter went away. It's still reproducible.

comment:3 Changed 13 years ago by nickm

The right behavior is if several circuits fail right when extending to the exit host, forget about the exit host.

comment:4 Changed 13 years ago by nickm

We could also use the chosen_exit_optional field; possibly turning it into a counter or something if we
feel fancy.

comment:5 Changed 13 years ago by arma

r13648 does part of what we want. Remaining is to actually forget the
addressmap if we give up on it, so we don't have to wait for every
new stream to time out (and so we can pick a new one).

comment:6 Changed 13 years ago by nickm

The rest of the fix is in r13660.

comment:7 Changed 13 years ago by arma

Good enough for now. If there are future bugs, they can be new bug numbers.

comment:8 Changed 13 years ago by arma

flyspray2trac: bug closed.

comment:9 Changed 8 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.