-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket33072 042 01 #1858
base: maint-0.4.2
Are you sure you want to change the base?
Ticket33072 042 01 #1858
Conversation
Fixes #33072 Signed-off-by: David Goulet <[email protected]>
This also adds the support for the option meaning, if set, every uncompressed directory requests will be served by the dirauth with a 503 error code. Signed-off-by: David Goulet <[email protected]>
Pull Request Test Coverage Report for Build 8670
💛 - Coveralls |
@@ -56,7 +56,7 @@ problem dependency-violation /src/core/crypto/onion_crypto.c 5 | |||
problem dependency-violation /src/core/crypto/onion_fast.c 1 | |||
problem dependency-violation /src/core/crypto/onion_tap.c 3 | |||
problem dependency-violation /src/core/crypto/relay_crypto.c 9 | |||
problem file-size /src/core/mainloop/connection.c 5569 | |||
problem file-size /src/core/mainloop/connection.c 5694 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, you shouldn't need to fix practracker on 0.4.2 or 0.4.3.
I have removed check-best-practices from check-local on all maint and release branches. So practracker only runs by default on master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the 0.4.2 and master code got out of sync with 0.4.3.
And the function comments need to be updated in every branch.
if (c_method != NO_METHOD) { | ||
/* Always answer compressed request. */ | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is missing in 0.4.3, but present in 0.4.2 and master.
Did you forget to delete it in 0.4.2 and master?
* If we are a directory authority, false is returned (indicating that we | ||
* should answer the request) if one of these conditions is met: | ||
* - Connection is from a known relay (address is looked up). | ||
* - AuthDirRejectRequestsUnderLoad is set to 0. | ||
* - Compression is being used for the request (looking at c_method). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't match what the function does in 0.4.3.
@@ -0,0 +1,4 @@ | |||
o Minor bugfix (directory authority): | |||
- Always allow compressed directory requests and introduce option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, the changes file is out of sync as well.
We let AuthDirRejectRequestsUnderLoad and the bandwidth buckets decide about compressed requests.
No description provided.