if ( rc == LDAP_SUCCESS ) {
LDAPMessage *res = NULL;
int retries = 1;
- struct timeval tv = { 0, 0 };
+ struct timeval tv = { 0, 100000 };
retry:;
rc = ldap_result( ld, msgid, LDAP_MSG_ALL, &tv, &res );
* remote server response */
if ( ERR_OK( rs->sr_err ) ) {
int rc;
- struct timeval tv = { 0, 0 };
+ struct timeval tv = { 0, 100000 };
retry:;
/* if result parsing fails, note the failure reason */
op->o_ctrls, NULL, &msgid );
if ( rs->sr_err == LDAP_SUCCESS ) {
LDAPMessage *res;
- struct timeval tv;
+ struct timeval tv = { 0, 100000 };
int rc;
int nretries = mt->mt_nretries;
if ( nretries > 0 ) {
nretries--;
}
+ tv.tv_sec = 0;
+ tv.tv_usec = 100000;
goto retry;
}
rs->sr_err = LDAP_BUSY;
NULL, NULL, &msgid );
if ( rc == LDAP_SUCCESS ) {
LDAPMessage *res;
- struct timeval tv;
+ struct timeval tv = { 0, 100000 };
/*
* handle response!!!
if ( nretries > 0 ) {
nretries--;
}
+ tv.tv_sec = 0;
+ tv.tv_usec = 100000;
goto retry;
}