summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-20 04:21:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:46 -0500
commitd9cfd55dbb969b08914fd306fb9d123e52ad6541 (patch)
treeb399a652001e7a9426a0b6ad729b5734895926d4 /source4/libcli/resolve
parent174da76293392782953242a996228e35708450e2 (diff)
downloadsamba-d9cfd55dbb969b08914fd306fb9d123e52ad6541.tar.gz
samba-d9cfd55dbb969b08914fd306fb9d123e52ad6541.tar.bz2
samba-d9cfd55dbb969b08914fd306fb9d123e52ad6541.zip
r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :)
(This used to be commit 0f8f1cd18e20ea4f3a06bb093b00b930cfd005b2)
Diffstat (limited to 'source4/libcli/resolve')
-rw-r--r--source4/libcli/resolve/nbtlist.c4
1 files changed, 2 insertions, 2 deletions
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;