Skip to content
  • David Goulet's avatar
    hs-v3: Give a cleanup type to hs_circ_cleanup() · cbc49545
    David Goulet authored
    
    
    By centralizing the circuit cleanup type that is: on close, free and
    repurpose, some actions on the circuit can not happen for a certain cleanup
    type or for all types.
    
    This passes a cleanup type so the HS subsystem (v2 and v3) can take actions
    based on the type of cleanup.
    
    For instance, there is slow code that we do not run on a circuit close but
    rather only on free.
    
    Part of #32020
    
    Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
    cbc49545