Skip to content
  • David Goulet's avatar
    conn: Add an helper to mark a connection as waiting for an HS descriptor · d0682fe0
    David Goulet authored
    
    
    The transition for a connection to either become or go back in
    AP_CONN_STATE_RENDDESC_WAIT state must make sure that the entry connection is
    _not_ in the waiting for circuit list.
    
    This commit implements the helper function
    connection_ap_mark_as_waiting_for_renddesc() that removes the entry connection
    from the pending list and then change its state. This code pattern is used in
    many places in the code where next commit will remove this code duplication to
    use this new helper function.
    
    Part of #28669
    
    Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
    d0682fe0