mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Retry streams that ended with NOROUTE error
Also add the NOROUTE reason to control-spec.
This commit is contained in:
parent
150ed553df
commit
161b275028
2 changed files with 2 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ $Id$
|
||||||
|
|
||||||
Reason = "MISC" / "RESOLVEFAILED" / "CONNECTREFUSED" /
|
Reason = "MISC" / "RESOLVEFAILED" / "CONNECTREFUSED" /
|
||||||
"EXITPOLICY" / "DESTROY" / "DONE" / "TIMEOUT" /
|
"EXITPOLICY" / "DESTROY" / "DONE" / "TIMEOUT" /
|
||||||
"HIBERNATING" / "INTERNAL"/ "RESOURCELIMIT" /
|
"NOROUTE" / "HIBERNATING" / "INTERNAL"/ "RESOURCELIMIT" /
|
||||||
"CONNRESET" / "TORPROTOCOL" / "NOTDIRECTORY" / "END"
|
"CONNRESET" / "TORPROTOCOL" / "NOTDIRECTORY" / "END"
|
||||||
|
|
||||||
The "REASON" field is provided only for FAILED, CLOSED, and DETACHED
|
The "REASON" field is provided only for FAILED, CLOSED, and DETACHED
|
||||||
|
|
|
@ -743,6 +743,7 @@ connection_ap_process_end_not_open(
|
||||||
case END_STREAM_REASON_RESOLVEFAILED:
|
case END_STREAM_REASON_RESOLVEFAILED:
|
||||||
case END_STREAM_REASON_TIMEOUT:
|
case END_STREAM_REASON_TIMEOUT:
|
||||||
case END_STREAM_REASON_MISC:
|
case END_STREAM_REASON_MISC:
|
||||||
|
case END_STREAM_REASON_NOROUTE:
|
||||||
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…
Add table
Reference in a new issue