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

DNS fixes #15864

Merged
merged 77 commits into from
Jan 9, 2025
Merged

DNS fixes #15864

merged 77 commits into from
Jan 9, 2025

Conversation

heimskr
Copy link
Member

@heimskr heimskr commented Dec 19, 2024

What does this PR do?

Adds some DNS tests and the changes that caused them to start passing.

  • Documentation or TypeScript types
  • Code changes

How did you verify your code works?

Added tests from Node.

@robobun
Copy link

robobun commented Dec 19, 2024

Updated 10:07 PM PT - Jan 8th, 2025

@heimskr, your commit 7cffbb2 has passed in #9291! 🎉


🧪   try this PR locally:

bunx bun-pr 15864

@heimskr heimskr requested review from a team and zackradisic and removed request for a team December 19, 2024 02:06
@Jarred-Sumner Jarred-Sumner requested review from a team and cirospaciari and removed request for zackradisic and a team December 19, 2024 03:08
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After each request is sent or fulfilled, we should check if there are still any in-flight requests and if there are no longer any, then cancel the timer so that we don't keep the process alive longer than necessary.

A helper method for updating the timer state would be a good idea I think

return globalThis.throwInvalidArgumentType("setServers", "triple", "array");
}

const family = JSValue.getIndex(triple, globalThis, 0).toInt32();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a great use-case for the bindings generator @paperdave

src/deps/c_ares.zig Outdated Show resolved Hide resolved
@heimskr heimskr force-pushed the kai/dns-test-fixes branch from 1f98482 to 7a7c60c Compare January 4, 2025 01:03
@heimskr heimskr marked this pull request as ready for review January 9, 2025 00:59
@Jarred-Sumner Jarred-Sumner merged commit 9bca80c into main Jan 9, 2025
68 of 69 checks passed
@Jarred-Sumner Jarred-Sumner deleted the kai/dns-test-fixes branch January 9, 2025 05:53
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.

3 participants