]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
don't mark the helper node as down when we fail to connect to
authorRoger Dingledine <arma@torproject.org>
Sun, 11 Dec 2005 11:54:55 +0000 (11:54 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 11 Dec 2005 11:54:55 +0000 (11:54 +0000)
our https proxy.

svn:r5566

src/or/connection_or.c

index 6c67500c46732d664e742ab6b47aa7a23fac1da0..fbc86a3764d523a76d4ddf5095c0e3b4fccf2336 100644 (file)
@@ -442,9 +442,12 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
 
   switch (connection_connect(conn, conn->address, addr, port)) {
     case -1:
-      if (!options->HttpsProxy)
+      if (!options->HttpsProxy) {
+        /* If the connection failed immediately, our https proxy
+         * is down. Don't blame the Tor server. */
         router_mark_as_down(conn->identity_digest);
-      helper_node_set_status(conn->identity_digest, 0);
+        helper_node_set_status(conn->identity_digest, 0);
+      }
       control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
       connection_free(conn);
       return NULL;