summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-02-28 00:26:20 +0000
committerJeremy Allison <jra@samba.org>2003-02-28 00:26:20 +0000
commita82caefda49396641e8650db8a7ef51752ba6c41 (patch)
tree9695583d1582d98813fc3a42d3fcd272640b87d2 /source/include
parentf80610120483c929afbec83d2b8649cb3e5111b0 (diff)
downloadsamba-a82caefda49396641e8650db8a7ef51752ba6c41.tar.gz
samba-a82caefda49396641e8650db8a7ef51752ba6c41.tar.xz
samba-a82caefda49396641e8650db8a7ef51752ba6c41.zip
*Excellent* patch from Michael Steffens <michael_steffens@hp.com> to limit
the unix domain sockets used by winbindd (also solves FD_SETSIZE problem in winbindd to boot !). Adds a "last_access" field to winbindd connections, and will close the oldest idle connection once the number of open connections goes over WINBINDD_MAX_SIMULTANEOUS_CLIENTS (defined in local.h as 200 currently). Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/include/local.h b/source/include/local.h
index e16cdbbc5dc..29b0641119d 100644
--- a/source/include/local.h
+++ b/source/include/local.h
@@ -221,4 +221,6 @@
/* Number in seconds for winbindd to wait for the mutex. Make this 2 * smbd wait time. */
#define WINBIND_SERVER_MUTEX_WAIT_TIME (( ((NUM_CLI_AUTH_CONNECT_RETRIES) * ((CLI_AUTH_TIMEOUT)/1000)) + 5)*2)
+/* Max number of simultaneous winbindd socket connections. */
+#define WINBINDD_MAX_SIMULTANEOUS_CLIENTS 200
#endif