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

Add a retry timeout for failed dns lookups #40

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

Add a retry timeout for failed dns lookups #40

TysonAndre opened this issue May 3, 2021 · 0 comments

Comments

@TysonAndre
Copy link

TysonAndre commented May 3, 2021

DNS lookups block the main thread for several milliseconds. This can cause issues if dns is misconfigured or a host is decommissioned, especially if there is no dns caching

[2021-05-03 10:56:34.205] nc_server.c:954 key 'key' on dist 0 maps to server 'invalid123141:6379:1'
[2021-05-03 10:56:34.430] nc_util.c:556 address resolution of node 'invalid123141' service '6379' failed: Name or service not known
static void
server_resolve(struct server *server, struct conn *conn)
{
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