[or-cvs] [tor/master 3/4] Retry streams that ended with NOROUTE error
nickm at torproject.org
nickm at torproject.org
Mon Aug 16 01:28:47 UTC 2010
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Wed, 4 Aug 2010 00:51:39 +0200
Subject: Retry streams that ended with NOROUTE error
Commit: 161b275028e90d38582c3cddf65d906e8a181368
Also add the NOROUTE reason to control-spec.
---
doc/spec/control-spec.txt | 2 +-
src/or/relay.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/doc/spec/control-spec.txt b/doc/spec/control-spec.txt
index cf92e2b..948b7ed 100644
--- a/doc/spec/control-spec.txt
+++ b/doc/spec/control-spec.txt
@@ -1029,7 +1029,7 @@ $Id$
Reason = "MISC" / "RESOLVEFAILED" / "CONNECTREFUSED" /
"EXITPOLICY" / "DESTROY" / "DONE" / "TIMEOUT" /
- "HIBERNATING" / "INTERNAL"/ "RESOURCELIMIT" /
+ "NOROUTE" / "HIBERNATING" / "INTERNAL"/ "RESOURCELIMIT" /
"CONNRESET" / "TORPROTOCOL" / "NOTDIRECTORY" / "END"
The "REASON" field is provided only for FAILED, CLOSED, and DETACHED
diff --git a/src/or/relay.c b/src/or/relay.c
index 2082da9..320c270 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -743,6 +743,7 @@ connection_ap_process_end_not_open(
case END_STREAM_REASON_RESOLVEFAILED:
case END_STREAM_REASON_TIMEOUT:
case END_STREAM_REASON_MISC:
+ case END_STREAM_REASON_NOROUTE:
if (client_dns_incr_failures(conn->socks_request->address)
< MAX_RESOLVE_FAILURES) {
/* We haven't retried too many times; reattach the connection. */
--
1.7.1
More information about the tor-commits
mailing list