[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Keep alive functionality when the remote closes the conenction due idle




--- On Wed, 9/8/10, masarati@aero.polimi.it <masarati@aero.polimi.it> wrote:

 
 As far as I know, the function registered by
 ldap_set_rebind_proc(3) is
 only invoked to bind when chasing a referral.
 
 p.
 
  This is what I found until now regarding this function. I'm tracing this in the openldap source code in request.c/ldap_send_server_request :


if ( lc == NULL || lc->lconn_status != LDAP_CONNST_CONNECTED ) {
     if ( ld->ld_errno == LDAP_SUCCESS ) {
	ld->ld_errno = LDAP_SERVER_DOWN;
     }

     ber_free( ber, 1 );
     if ( incparent ) {
	/* Forget about the bind */
		--parentreq->lr_outrefcnt; 
	}

     return( -1 );
}