[tor-bugs] #28717 [Core Tor/Tor]: Tor stuck in 25% Loading networkstatus consensus

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Dec 9 19:52:56 UTC 2018


#28717: Tor stuck in 25% Loading networkstatus consensus
--------------------------+----------------------------------
 Reporter:  loskiq        |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: unspecified
Component:  Core Tor/Tor  |        Version:  Tor: 0.3.4.9
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+----------------------------------

Comment (by cypherpunks3):

 {{{
 diff --git a/src/or/main.c b/src/or/main.c
 index bc01e07..dd1f0d6 100644
 --- a/src/or/main.c
 +++ b/src/or/main.c
 @@ -404,6 +404,9 @@ connection_unlink(connection_t *conn)
    connection_free(conn);
  }

 +/** Event that invokes schedule_active_linked_connections_cb. */
 +static mainloop_event_t *schedule_active_linked_connections_event = NULL;
 +
  /**
   * Callback: used to activate read events for all linked connections, so
   * libevent knows to call their read callbacks.  This callback run as a
 @@ -420,11 +423,10 @@
 schedule_active_linked_connections_cb(mainloop_event_t *ev
     * so that libevent knows to run their callbacks. */
    SMARTLIST_FOREACH(active_linked_connection_lst, connection_t *, conn,
                      event_active(conn->read_event, EV_READ, 1));
 +  if (smartlist_len(active_linked_connection_lst)) //QQQ: vvv safe?
 +    mainloop_event_activate(schedule_active_linked_connections_event);
  }

 -/** Event that invokes schedule_active_linked_connections_cb. */
 -static mainloop_event_t *schedule_active_linked_connections_event = NULL;
 -
  /** Initialize the global connection list, closeable connection list,
   * and active connection list. */
  STATIC void
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28717#comment:24>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list