mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-03 00:53:32 +01:00
76c9330f9d
Accomplished via the following: 1. Use NETINFO cells to determine if both peers will agree on canonical status. Prefer connections where they agree to those where they do not. 2. Alter channel_is_better() to prefer older orconns in the case of multiple canonical connections, and use the orconn with more circuits on it in case of age ties. Also perform some hourly accounting on how many of these types of connections there are and log it at info or notice level.
15 lines
817 B
Plaintext
15 lines
817 B
Plaintext
o Minor bugfixes (connection usage)
|
|
- Use NETINFO cells to try to determine if both relays involved in
|
|
a connection will agree on the canonical status of that connection.
|
|
Prefer the connections where this is the case for extend cells,
|
|
and try to close connections where relays disagree on canonical
|
|
status early. Also, additionally alter the connection selection
|
|
logic to prefer the oldest valid connection for extend cells.
|
|
These two changes should reduce the number of long-term connections
|
|
that are kept open between relays. Fixes bug #17604.
|
|
- Relays will now log hourly statistics on the total number of
|
|
connections to other relays. If the number of connections per relay
|
|
unexpectedly large, this log message is at notice level. Otherwise
|
|
it is at info.
|
|
|