mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
When looking for conns to close, count the age of linked queued data
Specifically, count the age of the data queued in a linked directory connection's buffers when counting a stream's age.
This commit is contained in:
parent
68e430a6fb
commit
d6033843a4
@ -1925,6 +1925,11 @@ circuit_get_streams_max_data_age(const edge_connection_t *stream, uint32_t now)
|
||||
age2 = conn_get_buffer_age(conn, now);
|
||||
if (age2 > age)
|
||||
age = age2;
|
||||
if (conn->linked_conn) {
|
||||
age2 = conn_get_buffer_age(conn->linked_conn, now);
|
||||
if (age2 > age)
|
||||
age = age2;
|
||||
}
|
||||
}
|
||||
return age;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user