mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-25 04:43:31 +01:00
i'm sick of having my streams fail because of a confused exit node.
try this band-aid to see if it gets better. svn:r4773
This commit is contained in:
parent
87fcd60aa2
commit
6d875b7d58
@ -597,7 +597,7 @@ errno_to_end_reason(int e)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** How many times will I retry a stream that fails due to DNS
|
/** 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
|
#define MAX_RESOLVE_FAILURES 3
|
||||||
|
|
||||||
@ -609,7 +609,8 @@ edge_reason_is_retriable(int reason)
|
|||||||
return reason == END_STREAM_REASON_HIBERNATING ||
|
return reason == END_STREAM_REASON_HIBERNATING ||
|
||||||
reason == END_STREAM_REASON_RESOURCELIMIT ||
|
reason == END_STREAM_REASON_RESOURCELIMIT ||
|
||||||
reason == END_STREAM_REASON_EXITPOLICY ||
|
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.
|
/** Called when we receive an END cell on a stream that isn't open yet.
|
||||||
@ -663,6 +664,7 @@ connection_edge_process_end_not_open(
|
|||||||
/* else, conn will get closed below */
|
/* else, conn will get closed below */
|
||||||
break;
|
break;
|
||||||
case END_STREAM_REASON_RESOLVEFAILED:
|
case END_STREAM_REASON_RESOLVEFAILED:
|
||||||
|
case END_STREAM_REASON_MISC:
|
||||||
if (client_dns_incr_failures(conn->socks_request->address)
|
if (client_dns_incr_failures(conn->socks_request->address)
|
||||||
< MAX_RESOLVE_FAILURES) {
|
< MAX_RESOLVE_FAILURES) {
|
||||||
/* We haven't retried too many times; reattach the connection. */
|
/* We haven't retried too many times; reattach the connection. */
|
||||||
|
Loading…
Reference in New Issue
Block a user