From bd18d996e2dc3e6b984d20196e9825b8b3f4dea3 Mon Sep 17 00:00:00 2001 From: Scott Lovenberg Date: Tue, 4 Dec 2012 09:15:38 -0500 Subject: 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 Reviewed by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Dec 6 03:25:58 CET 2012 on sn-devel-104 --- source3/libsmb/clientgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') 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 -- cgit