Skip to content
  • Nick Mathewson's avatar
    Replace last_added_nonpadding with last_had_circuits · 6557e612
    Nick Mathewson authored
    The point of the "idle timeout" for connections is to kill the
    connection a while after it has no more circuits.  But using "last
    added a non-padding cell" as a proxy for that is wrong, since if the
    last circuit is closed from the other side of the connection, we
    will not have sent anything on that connection since well before the
    last circuit closed.
    
    This is part of fixing 6799.
    
    When applied to 0.2.5, it is also a fix for 12023.
    6557e612