-
Notifications
You must be signed in to change notification settings - Fork 2
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
[LLT-4202] Make lookup return error in case of failure on forward #1
[LLT-4202] Make lookup return error in case of failure on forward #1
Conversation
Why are the workflow files removed? |
.await; | ||
.await | ||
.map_err(|e| { | ||
debug!("failed to send response: {}", e); |
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.
I think warn!
would be better here.
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.
There was a patch added by Gytis that reduced the log levels from trust-dns, probably because of spam in logs. Every warn/error log was changed to debug.
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.
Is that the commit you are referring to: fe423f8 - it's a pity that we will never know why the change was made ;)
answers: Box::<AuthLookup>::default(), | ||
ns: Box::<AuthLookup>::default(), | ||
soa: Box::<AuthLookup>::default(), | ||
additionals: Box::<AuthLookup>::default(), |
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.
Nice! :)
I wrote the reason for removing the workflow files in the commit description: "There are clippy warnings due to rust updates and some tests are failing |
Make the forward error visible instead of just filling the response buffer with an empty response.
1681096
to
2522c02
Compare
pub(crate) fn unknown(id: u16) -> Self { | ||
let mut header = Header::new(); | ||
header.set_id(id); | ||
header.set_response_code(ResponseCode::Unknown(0)); |
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.
There are predefined ranges for the Unknown
enum variant: https://github.com/NordSecurity/trust-dns/blob/main/crates/proto/src/op/response_code.rs#L125-L130
I think what is not clear is (at least for me) why was the decision made to remove the tests instead of fixing them. |
2522c02
to
c69e15c
Compare
eed8f34
to
fac712d
Compare
fac712d
to
4bc78b7
Compare
Make the forward error visible instead of just filling the response buffer with an empty response.