summaryrefslogtreecommitdiff
path: root/source3/include/local.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-02-28 00:25:55 +0000
committerJeremy Allison <jra@samba.org>2003-02-28 00:25:55 +0000
commite0989e13042c89911c4d8bff409222e8e3c4678e (patch)
tree2f4f41fcea60b9f17e8bc09233a6bb2d3686d937 /source3/include/local.h
parent19995a40c15b33fe82a3d2399de00f8972325d1e (diff)
downloadsamba-e0989e13042c89911c4d8bff409222e8e3c4678e.tar.gz
samba-e0989e13042c89911c4d8bff409222e8e3c4678e.tar.bz2
samba-e0989e13042c89911c4d8bff409222e8e3c4678e.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. (This used to be commit 7a586552a3aeb4a26495f0965af4bd027456a011)
Diffstat (limited to 'source3/include/local.h')
-rw-r--r--source3/include/local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index e16cdbbc5d..29b0641119 100644
--- a/source3/include/local.h
+++ b/source3/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