]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Launch intro services after launching connections; allow ORs to build circuits throug...
authorNick Mathewson <nickm@torproject.org>
Thu, 8 Apr 2004 03:53:39 +0000 (03:53 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 Apr 2004 03:53:39 +0000 (03:53 +0000)
svn:r1562

src/or/circuit.c
src/or/directory.c

index 7da6fe22ad3851aa7fb74d70802872bea205d813..0c2dfad276034e32fd7b539eb2a329e10ecae39a 100644 (file)
@@ -1268,11 +1268,6 @@ static circuit_t *circuit_establish_circuit(uint8_t purpose,
   if(!n_conn || n_conn->state != OR_CONN_STATE_OPEN) { /* not currently connected */
     circ->n_addr = firsthop->addr;
     circ->n_port = firsthop->or_port;
-    if(options.ORPort) { /* we would be connected if he were up. and he's not. */
-      log_fn(LOG_INFO,"Route's firsthop isn't connected.");
-      circuit_mark_for_close(circ);
-      return NULL;
-    }
 
     if(!n_conn) { /* launch the connection */
       n_conn = connection_or_connect(firsthop);
index c9c8bd6e4e6c6b298e6f46bd83050336cac018e7..8bf945ab1e9de4ec7262e67250111bccd1e69808 100644 (file)
@@ -243,13 +243,13 @@ int connection_dir_process_inbuf(connection_t *conn) {
       } else {
         log_fn(LOG_INFO,"updated routers.");
       }
+      if(options.ORPort) { /* connect to them all */
+        router_retry_connections();
+      }
       if (has_fetched_directory==0) {
         has_fetched_directory=1;
         directory_has_arrived(); /* do things we've been waiting to do */
       }
-      if(options.ORPort) { /* connect to them all */
-        router_retry_connections();
-      }
     }
 
     if(conn->purpose == DIR_PURPOSE_UPLOAD_DIR) {