summaryrefslogtreecommitdiff
path: root/source3/include/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/local.h')
-rw-r--r--source3/include/local.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index 6903e5854f..a31c5c35b4 100644
--- a/source3/include/local.h
+++ b/source3/include/local.h
@@ -44,6 +44,17 @@
#define SHMEM_SIZE (1024*1024)
#endif
+/*
+ * Default number of maximum open files per smbd. This is
+ * also limited by the maximum available file descriptors
+ * per process and can also be set in smb.conf as "max open files"
+ * in the [global] section.
+ */
+
+#ifndef MAX_OPEN_FILES
+#define MAX_OPEN_FILES 4096
+#endif
+
/* the max number of simultanous connections to the server by all clients */
#define MAXSTATUS 100000