[tor-bugs] #7870 [Tor]: retry on a new circuit if reason timeout or reason connectrefused?
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Jan 6 16:09:49 UTC 2013
#7870: retry on a new circuit if reason timeout or reason connectrefused?
-------------------------+--------------------------------------------------
Reporter: arma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Tor: unspecified
Component: Tor | Version:
Keywords: tor-client | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by arma):
If we keep the code, we should apply this patch:
{{{
diff --git a/src/or/relay.c b/src/or/relay.c
index f58c5c9..a80cebb 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -811,7 +811,7 @@ connection_ap_process_end_not_open(
/* else, conn will get closed below */
break;
case END_STREAM_REASON_CONNECTREFUSED:
- if (!conn->chosen_exit_optional)
+ if (conn->chosen_exit_name && !conn->chosen_exit_optional)
break; /* break means it'll close, below */
/* Else fall through: expire this circuit, clear the
* chosen_exit_name field, and try again. */
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7870#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list