mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
BUG 1185: use 'winbind cache time' as the reconnect period when seq_num == -1 rather than multiplying it by 8 (the default cache time is 5 minutes now)
This commit is contained in:
parent
4449e0e251
commit
8d6e370313
@ -339,10 +339,12 @@ static void refresh_sequence_number(struct winbindd_domain *domain, BOOL force)
|
||||
|
||||
get_cache( domain );
|
||||
|
||||
#if 0 /* JERRY -- disable as the default cache time is now 5 minutes */
|
||||
/* trying to reconnect is expensive, don't do it too often */
|
||||
if (domain->sequence_number == DOM_SEQUENCE_NONE) {
|
||||
cache_time *= 8;
|
||||
}
|
||||
#endif
|
||||
|
||||
time_diff = t - domain->last_seq_check;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user