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

Look into implementing/using a threaded dns resolver to make nc_resolve non-blocking #45

Open
TysonAndre opened this issue May 4, 2021 · 0 comments

Comments

@TysonAndre
Copy link

In addition to a connecting state, maybe add a resolving state prior to that for server connections.

getaddrinfo is blocking - some applications (e.g. curl?) will start a separate thread and call getaddrinfo in that thread to avoid blocking the main thread.

Related to #40 - if there's local dns result caching on the host itself this is less of an issue but may still take milliseconds and be called repeatedly.

The heartbeat patches may be interacting with the server retry timeout poorly?

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

No branches or pull requests

1 participant