]> git.ipfire.org Git - thirdparty/tor.git/commit
Replace last_added_nonpadding with last_had_circuits
authorNick Mathewson <nickm@torproject.org>
Fri, 16 May 2014 14:32:31 +0000 (10:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 11 Jun 2014 15:27:04 +0000 (11:27 -0400)
commit6557e612959dd9a1df4e85df4a11153be38db3ca
tree17013d5b55f517cea467814b943386dfb1915e0a
parent463f6628d316cecdd612b4a78cd5349ab4a824c5
Replace last_added_nonpadding with last_had_circuits

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.
changes/bug6799
src/or/channel.c
src/or/channel.h
src/or/circuitlist.c
src/or/connection.c
src/or/connection_or.c
src/or/main.c
src/or/or.h