Skip to content
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

net: rework the unified CNAME handling on unix #57093

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

mateusz834
Copy link
Contributor

@mateusz834 mateusz834 commented Dec 5, 2022

This fixes following issues:

  1. return the last CNAME in the chain, not the first one to align with
    the current windows implementation, see:
    net: make LookupCNAME consistent between Unix and Windows, document #50101 (comment)
  2. return correct &DNSErrors to make it consistent with the rest
    of the package.
  3. return noSuchHost errors in resSearch and do not fallback to
    the go resolver when resSearch fails with an error.
    (I am still unsure if this is going to work on all systems,
    because of possible h_errno)
    Currently return noSuchHost from resSearch on glibc systems,
    it has a per-thread h_errno macro and it sets errno when resSearch
    fails, so we can get a correct cause of the failure.

DO NOT REVIEW
DO NOT SUBMIT

@gopherbot
Copy link

gopherbot commented Dec 5, 2022

This PR (HEAD: d53187d) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 5, 2022

This PR (HEAD: c73cb25) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 6, 2022

This PR (HEAD: 4f7f78d) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 6, 2022

This PR (HEAD: a431ad1) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 6, 2022

This PR (HEAD: f6b504c) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 6, 2022

This PR (HEAD: 445464f) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 6, 2022

This PR (HEAD: 4b78ce8) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 6, 2022

This PR (HEAD: 32f3d80) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 7, 2022

Message from Damien Neil:

Patch Set 9: Run-TryBot+1

(11 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/455275.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

gopherbot commented Dec 7, 2022

Message from Gopher Robot:

Patch Set 9:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/455275.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

gopherbot commented Dec 7, 2022

Message from Gopher Robot:

Patch Set 9:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/455275.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

gopherbot commented Dec 7, 2022

Message from Gopher Robot:

Patch Set 9: TryBot-Result-1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/455275.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

gopherbot commented Dec 7, 2022

This PR (HEAD: 4a0bf94) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/455275 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

gopherbot commented Dec 7, 2022

Message from Mateusz Poliwczak:

Patch Set 9:

(6 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/455275.
After addressing review feedback, remember to publish your drafts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants