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

Fixes Seg-Faults if Close is called on a resolver and IPv4/v6 isn't used and update examples/ #433

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

phillip-stephens
Copy link
Contributor

@phillip-stephens phillip-stephens commented Aug 29, 2024

Closes #423

A user reached out over email saying that the resolver.Close had broken with the recent IPv6 changes. This PR:

  • ensures Close doesn't panic if we don't have an IPv4 or IPv6 conn object
  • Utilize Close in our worker_manager so that this sort of seg fault would be caught by our CI. (We simply we're calling resolver.Close before
  • Updates the examples/ folder so they compile again with the recent changes around IPv4/v6 resolver validation
  • Adds a unit test so any breaking changes to examples/ will be caught before PR merge

@phillip-stephens phillip-stephens changed the title Fixes Seg-Faults if Close is called on a resolver and IPv4/v6 isn't used Fixes Seg-Faults if Close is called on a resolver and IPv4/v6 isn't used and update examples/ Aug 29, 2024
@phillip-stephens phillip-stephens marked this pull request as ready for review August 29, 2024 20:42
@phillip-stephens phillip-stephens requested a review from a team as a code owner August 29, 2024 20:42
@zakird zakird merged commit e5db495 into main Aug 29, 2024
3 checks passed
@zakird zakird deleted the phillip/fix-segfault-close branch August 29, 2024 20:46
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.

/examples folder is out-of-date
2 participants