s3:param: add "async smb echo handler" option
authorStefan Metzmacher <metze@samba.org>
Mon, 22 Mar 2010 08:36:41 +0000 (09:36 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 26 Mar 2010 11:43:05 +0000 (12:43 +0100)
This will enable an extra forked process that will reply
to SMBecho requests, while the main process is blocked by another
request.

metze
(cherry picked from commit 752240ccdc4dcdce7a2270ee5544e007c44bcf4d)

source3/include/proto.h
source3/param/loadparm.c

index b6e10b4ed67370060ee70f520d0590324a7e863a..20a43cce7ad479d27d8cbd61cef71378dd834d31 100644 (file)
@@ -4209,6 +4209,7 @@ bool lp_dos_filemode(int );
 bool lp_dos_filetimes(int );
 bool lp_dos_filetime_resolution(int );
 bool lp_fake_dir_create_times(void);
+bool lp_async_smb_echo_handler(void);
 bool lp_blocking_locks(int );
 bool lp_inherit_perms(int );
 bool lp_inherit_acls(int );
index a71c62fe73ba91c96d52a1393cd0d07e60347191..e18936123ceb5d5481b8009b0633024da9ec8b64 100644 (file)
@@ -355,6 +355,7 @@ struct global {
        char *szSMBPerfcountModule;
        bool bMapUntrustedToDomain;
        bool bFakeDirCreateTimes;
+       bool bAsyncSMBEchoHandler;
 };
 
 static struct global Globals;
@@ -4300,6 +4301,15 @@ static struct parm_struct parm_table[] = {
                .enum_list      = NULL,
                .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,
@@ -5621,6 +5631,7 @@ FN_LOCAL_BOOL(lp_dos_filemode, bDosFilemode)
 FN_LOCAL_BOOL(lp_dos_filetimes, bDosFiletimes)
 FN_LOCAL_BOOL(lp_dos_filetime_resolution, bDosFiletimeResolution)
 FN_GLOBAL_BOOL(lp_fake_dir_create_times, &Globals.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)