[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] i"m sick of having my streams fail because of a confused ex...
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
relay.c
Log Message:
i'm sick of having my streams fail because of a confused exit node.
try this band-aid to see if it gets better.
Index: relay.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/relay.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- relay.c 8 Aug 2005 21:58:48 -0000 1.75
+++ relay.c 13 Aug 2005 00:31:41 -0000 1.76
@@ -597,7 +597,7 @@
}
/** How many times will I retry a stream that fails due to DNS
- * resolve failure?
+ * resolve failure or misc error?
*/
#define MAX_RESOLVE_FAILURES 3
@@ -609,7 +609,8 @@
return reason == END_STREAM_REASON_HIBERNATING ||
reason == END_STREAM_REASON_RESOURCELIMIT ||
reason == END_STREAM_REASON_EXITPOLICY ||
- reason == END_STREAM_REASON_RESOLVEFAILED;
+ reason == END_STREAM_REASON_RESOLVEFAILED ||
+ reason == END_STREAM_REASON_MISC;
}
/** Called when we receive an END cell on a stream that isn't open yet.
@@ -663,6 +664,7 @@
/* else, conn will get closed below */
break;
case END_STREAM_REASON_RESOLVEFAILED:
+ case END_STREAM_REASON_MISC:
if (client_dns_incr_failures(conn->socks_request->address)
< MAX_RESOLVE_FAILURES) {
/* We haven't retried too many times; reattach the connection. */