From d9cfd55dbb969b08914fd306fb9d123e52ad6541 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Jul 2005 04:21:10 +0000 Subject: r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :) (This used to be commit 0f8f1cd18e20ea4f3a06bb093b00b930cfd005b2) --- source4/libcli/resolve/nbtlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/libcli/resolve/nbtlist.c b/source4/libcli/resolve/nbtlist.c index 0026c6fceb..7080c62e43 100644 --- a/source4/libcli/resolve/nbtlist.c +++ b/source4/libcli/resolve/nbtlist.c @@ -140,9 +140,9 @@ struct composite_context *resolve_name_nbtlist_send(struct nbt_name *name, if (!state->io_queries[i].in.dest_addr) goto failed; state->io_queries[i].in.broadcast = broadcast; state->io_queries[i].in.wins_lookup = wins_lookup; - state->io_queries[i].in.timeout = lp_parm_int(-1, "nbt", "timeout", 3); + state->io_queries[i].in.timeout = lp_parm_int(-1, "nbt", "timeout", 1); - state->io_queries[i].in.retries = 0; + state->io_queries[i].in.retries = 2; state->queries[i] = nbt_name_query_send(state->nbtsock, &state->io_queries[i]); if (!state->queries[i]) goto failed; -- cgit