Commit 07e79471 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9534,#9324 fix refresh startup

Partially revert 5aa7e0f6
Use an explicit timeout for Refresh response. Need to give time
for the provider to reply.
parent efb84b3e
......@@ -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 )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment