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:
Howard Chu 2021-05-13 18:29:22 +01:00
parent efb84b3e9b
commit 07e79471f9

View File

@ -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 )
{