summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-22 08:35:33 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-22 17:15:12 +0100
commit752240ccdc4dcdce7a2270ee5544e007c44bcf4d (patch)
treeffc1326fd18f381a24732b7c6a65e5f1e9ecfe0d
parentb2c107ffbcd067ccc42f81a2d0969f7f88b63ae7 (diff)
downloadsamba-752240ccdc4dcdce7a2270ee5544e007c44bcf4d.tar.gz
samba-752240ccdc4dcdce7a2270ee5544e007c44bcf4d.tar.bz2
samba-752240ccdc4dcdce7a2270ee5544e007c44bcf4d.zip
s3:param: add "async smb echo handler" option
This will enable an extra forked process that will reply to SMBecho requests, while the main process is blocked by another request. metze
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/param/loadparm.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index b26fa26341..06d324eea4 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4215,6 +4215,7 @@ bool lp_dos_filemode(int );
bool lp_dos_filetimes(int );
bool lp_dos_filetime_resolution(int );
bool lp_fake_dir_create_times(int);
+bool lp_async_smb_echo_handler(void);
bool lp_blocking_locks(int );
bool lp_inherit_perms(int );
bool lp_inherit_acls(int );
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index e94c270247..76b0d35066 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -360,6 +360,7 @@ struct global {
int cups_connection_timeout;
char *szSMBPerfcountModule;
bool bMapUntrustedToDomain;
+ bool bAsyncSMBEchoHandler;
};
static struct global Globals;
@@ -4353,6 +4354,15 @@ static struct parm_struct parm_table[] = {
.flags = FLAG_ADVANCED | FLAG_GLOBAL,
},
{
+ .label = "async smb echo handler",
+ .type = P_BOOL,
+ .p_class = P_GLOBAL,
+ .ptr = &Globals.bAsyncSMBEchoHandler,
+ .special = NULL,
+ .enum_list = NULL,
+ .flags = FLAG_ADVANCED | FLAG_GLOBAL,
+ },
+ {
.label = "panic action",
.type = P_STRING,
.p_class = P_GLOBAL,
@@ -5701,6 +5711,7 @@ FN_LOCAL_BOOL(lp_dos_filemode, bDosFilemode)
FN_LOCAL_BOOL(lp_dos_filetimes, bDosFiletimes)
FN_LOCAL_BOOL(lp_dos_filetime_resolution, bDosFiletimeResolution)
FN_LOCAL_BOOL(lp_fake_dir_create_times, bFakeDirCreateTimes)
+FN_GLOBAL_BOOL(lp_async_smb_echo_handler, &Globals.bAsyncSMBEchoHandler)
FN_LOCAL_BOOL(lp_blocking_locks, bBlockingLocks)
FN_LOCAL_BOOL(lp_inherit_perms, bInheritPerms)
FN_LOCAL_BOOL(lp_inherit_acls, bInheritACLS)