summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-17 22:58:20 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-17 22:58:20 +0000
commit6693f3253097326abe3a57469690330cd73d2456 (patch)
tree76e53f5552b311e651cf70c6324370cad1e53ebe /src/or/connection_edge.c
parent2ad36f68c8e5bbbc0f284c04f266f80866d2aef9 (diff)
downloadtor-6693f3253097326abe3a57469690330cd73d2456.tar.gz
tor-6693f3253097326abe3a57469690330cd73d2456.zip
Resolve many DOCDOCs.
svn:r17662
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 0775e39645..fe415ce236 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1361,6 +1361,11 @@ consider_plaintext_ports(edge_connection_t *conn, uint16_t port)
return 0;
}
+/** How many times do we try connecting with an exit configured via
+ * TrackHostExits before concluding that it won't work any more and trying a
+ * different one? */
+#define TRACKHOSTEXITS_RETRIES 5
+
/** Connection <b>conn</b> just finished its socks handshake, or the
* controller asked us to take care of it. If <b>circ</b> is defined,
* then that's where we'll want to attach it. Otherwise we have to
@@ -1500,8 +1505,6 @@ connection_ap_handshake_rewrite_and_attach(edge_connection_t *conn,
if (s) {
if (s[1] != '\0') {
conn->chosen_exit_name = tor_strdup(s+1);
-/* DOCDOC */
-#define TRACKHOSTEXITS_RETRIES 5
if (remapped_to_exit) /* 5 tries before it expires the addressmap */
conn->chosen_exit_retries = TRACKHOSTEXITS_RETRIES;
*s = 0;