mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
aa950e6c48
We've got millisecond timers now, we might as well use them. This change won't actually make circuits get expiered with microsecond precision, since we only call the expiry functions once per second. Still, it should avoid the situation where we have a circuit get expired too early because of rounding. A couple of the expiry functions now call tor_gettimeofday: this should be cheap since we're only doing it once per second. If it gets to be called more often, though, we should onsider having the current time be an argument again.
8 lines
325 B
Plaintext
8 lines
325 B
Plaintext
o Minor features
|
|
- When expiring circuits, use microsecond timers rather than one-second
|
|
timers. This can avoid an unpleasant situation where a circuit is
|
|
launched near the end of one second and expired right near the
|
|
beginning of the next, and prevent fluctuations in circuit timeout
|
|
values.
|
|
|