diff options
author | Jeremy Allison <jra@samba.org> | 2003-02-28 00:26:20 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-02-28 00:26:20 +0000 |
commit | 9f0ae6fad2d0099a58fec389ddd430c0448ec02e (patch) | |
tree | 9065983abc2e496538a2c7a43e7d7c1815ff48c9 /source3/include | |
parent | 17c417e6e66e05d6bcee98cb1c7ebfa7d98a5347 (diff) | |
download | samba-9f0ae6fad2d0099a58fec389ddd430c0448ec02e.tar.gz samba-9f0ae6fad2d0099a58fec389ddd430c0448ec02e.tar.bz2 samba-9f0ae6fad2d0099a58fec389ddd430c0448ec02e.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 a82caefda49396641e8650db8a7ef51752ba6c41)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/local.h | 2 |
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 |