Make pdb_ldap use a random factor in deciding how long we need to sleep.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Apr 2003 15:19:14 +0000 (15:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 22 Apr 2003 15:19:14 +0000 (15:19 +0000)
commit690e29a04116e5e524aa73d1402496e6c6ed7141
treedb8ae319b6afeb13f7679184674d7379ba3e3286
parentdc0cada1ebed4bb62571a0f23d81a46f4989f984
Make pdb_ldap use a random factor in deciding how long we need to sleep.

This might help avoid killing the ldap server when all 100 smbd processes
reconnect in pulses...

Also, reduces the maximum wait time, as SMB clients will time out after 30
seconds anyway...

Andrew Bartlett
(This used to be commit 08c5aaae6a92d6ee14f9bf8e3330191718e84edf)
source3/passdb/pdb_ldap.c