summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorScott Lovenberg <scott.lovenberg@gmail.com>2012-12-04 09:15:38 -0500
committerJeremy Allison <jra@samba.org>2012-12-06 03:25:58 +0100
commitbd18d996e2dc3e6b984d20196e9825b8b3f4dea3 (patch)
tree8d4dffa1bbc607240fd9180692e6038e273c3810 /source3/libsmb
parent4eb53da3fe139b8d89ab98cc1df211267669a612 (diff)
downloadsamba-bd18d996e2dc3e6b984d20196e9825b8b3f4dea3.tar.gz
samba-bd18d996e2dc3e6b984d20196e9825b8b3f4dea3.tar.bz2
samba-bd18d996e2dc3e6b984d20196e9825b8b3f4dea3.zip
Clean up client timeout definitions [rev. 2]
The definitions for default client timeout values have been moved to client.h. When initializing a client struct we use this value instead of the old hardcoded value. The timeout value remains 20 seconds. Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Dec 6 03:25:58 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 6bc8d0ce70..98ea7113a2 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -26,6 +26,7 @@
#include "async_smb.h"
#include "../libcli/smb/smbXcli_base.h"
#include "../librpc/ndr/libndr.h"
+#include "../include/client.h"
/*******************************************************************
Setup the word count and byte count for a client smb message.
@@ -175,7 +176,7 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
}
cli->raw_status = NT_STATUS_INTERNAL_ERROR;
cli->map_dos_errors = true; /* remove this */
- cli->timeout = 20000; /* Timeout is in milliseconds. */
+ cli->timeout = CLIENT_TIMEOUT;
cli->case_sensitive = false;
/* Set the CLI_FORCE_DOSERR environment variable to test