mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
fix handling of bind-timeout
This commit is contained in:
parent
8ce45fc80d
commit
8d4418b044
@ -342,7 +342,6 @@ rebind:;
|
|||||||
* handle response!!!
|
* handle response!!!
|
||||||
*/
|
*/
|
||||||
retry:;
|
retry:;
|
||||||
tv = mt->mt_bind_timeout;
|
|
||||||
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
|
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
|
||||||
case 0:
|
case 0:
|
||||||
snprintf( buf, sizeof( buf ),
|
snprintf( buf, sizeof( buf ),
|
||||||
@ -357,7 +356,7 @@ retry:;
|
|||||||
if ( nretries > 0 ) {
|
if ( nretries > 0 ) {
|
||||||
nretries--;
|
nretries--;
|
||||||
}
|
}
|
||||||
LDAP_BACK_TV_SET( &tv );
|
tv = mt->mt_bind_timeout;
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
rs->sr_err = LDAP_BUSY;
|
rs->sr_err = LDAP_BUSY;
|
||||||
@ -498,7 +497,6 @@ rebind:;
|
|||||||
* handle response!!!
|
* handle response!!!
|
||||||
*/
|
*/
|
||||||
retry:;
|
retry:;
|
||||||
tv = mt->mt_bind_timeout;
|
|
||||||
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
|
switch ( ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res ) ) {
|
||||||
case 0:
|
case 0:
|
||||||
snprintf( buf, sizeof( buf ),
|
snprintf( buf, sizeof( buf ),
|
||||||
@ -513,7 +511,7 @@ retry:;
|
|||||||
if ( nretries > 0 ) {
|
if ( nretries > 0 ) {
|
||||||
nretries--;
|
nretries--;
|
||||||
}
|
}
|
||||||
LDAP_BACK_TV_SET( &tv );
|
tv = mt->mt_bind_timeout;
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user