mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
b0b3c14c11
The right way to set "MaxOnionsPending" was to adjust it until the processing delay was appropriate. So instead, let's measure how long it takes to process onionskins (sampling them once we have a big number), and then limit the queue based on its expected time to finish. This change is extra-necessary for ntor, since there is no longer a reasonable way to set MaxOnionsPending without knowing what mix of onionskins you'll get. This patch also reserves 1/3 of the onionskin spots for ntor handshakes, on the theory that TAP handshakes shouldn't be allowed to starve their speedier cousins. We can change this later if need be. Resolves 7291.
8 lines
458 B
Plaintext
8 lines
458 B
Plaintext
o Minor features (relay):
|
|
- Instead of limiting the number of queued onionskins to a configured,
|
|
hard-to-configure number, we limit the size of the queue based on how
|
|
many we expect to be able to process in a given amount of time. We
|
|
estimate the time it will take to process an onionskin based on average
|
|
processing time of previous onionskins. Closes ticket 7291. You'll
|
|
never have to configure MaxOnionsPending again.
|