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

Asynchronous DNS for sockets #11097

Merged
merged 42 commits into from
May 18, 2024
Merged

Asynchronous DNS for sockets #11097

merged 42 commits into from
May 18, 2024

Conversation

gvilums
Copy link
Contributor

@gvilums gvilums commented May 15, 2024

What does this PR do?

Changes usockets to resolve DNS queries asynchronously through a global resolver, instead of blocking.

How did you verify your code works?

Existing tests.

Copy link

github-actions bot commented May 15, 2024

@Jarred-Sumner, your commit has failing tests :(

💪 2 failing tests Darwin AARCH64

💻 2 failing tests Darwin x64 baseline

💻 3 failing tests Darwin x64

🐧🖥 2 failing tests Linux x64

🪟💻 9 failing tests Windows x64 baseline

🪟💻 9 failing tests Windows x64

View logs

@gvilums gvilums marked this pull request as ready for review May 17, 2024 01:27
src/http.zig Outdated
});
// const loop = bun.uws.Loop.create(struct {
// pub fn wakeup(_: *uws.Loop) callconv(.C) void {
// http_thread.drainEvents();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is drainEvents called?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before every iteration of the event loop (processEvents)

@Jarred-Sumner
Copy link
Collaborator

Looks like WebSocket (websocket_http_client) needs to be updated

@Jarred-Sumner Jarred-Sumner merged commit 814440b into main May 18, 2024
47 of 53 checks passed
@Jarred-Sumner Jarred-Sumner deleted the georgijs/dns branch May 18, 2024 12:11
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

3 participants