mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
ITS#9534,#9324 fix refresh startup
Partially revert 5aa7e0f69b
Use an explicit timeout for Refresh response. Need to give time
for the provider to reply.
This commit is contained in:
parent
efb84b3e9b
commit
07e79471f9
@ -1247,6 +1247,13 @@ do_syncrep2(
|
||||
|
||||
slap_dup_sync_cookie( &syncCookie_req, &si->si_syncCookie );
|
||||
|
||||
if ( abs(si->si_type) == LDAP_SYNC_REFRESH_AND_PERSIST && si->si_refreshDone ) {
|
||||
tout.tv_sec = 0;
|
||||
} else {
|
||||
/* Give some time for refresh response to arrive */
|
||||
tout.tv_sec = si->si_bindconf.sb_timeout_api;
|
||||
}
|
||||
|
||||
while ( ( rc = ldap_result( si->si_ld, si->si_msgid, LDAP_MSG_ONE,
|
||||
&tout, &msg ) ) > 0 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user