src/LdapTools/Operation/Invoker/LdapOperationInvoker.php
protected function idleReconnectIfNeeded(LdapOperationInterface $operation)
    {
        // An auth operation will force a reconnect anyways, so avoid extra work
        if (!$this->connection->getConfig()->getIdleReconnect() || $operation instanceof AuthenticationOperation) {
            return;
        }

        if ($this->connection->getIdleTime() >= $this->connection->getConfig()->getIdleReconnect()) {
            $this->connection->close()->connect();
        }
    }
protected function idleReconnectIfNeeded(LdapOperationInterface $operation)
    {
        // An auth operation will force a reconnect anyways, so avoid extra work
        if (!$this->connection->getConfig()->getIdleReconnect() || $operation instanceof AuthenticationOperation) {
            return;
        }

        if ($this->connection->getIdleTime() >= $this->connection->getConfig()->getIdleReconnect()) {
            $this->connection->close()->connect();
        }
    }
protected function idleReconnectIfNeeded ( LdapOperationInterface $ operation ) { // An auth operation will force a reconnect anyways, so avoid extra work if ( ! $ this -> connection -> getConfig ( ) -> getIdleReconnect ( ) || $ operation instanceof AuthenticationOperation ) { return ; } if ( $ this -> connection -> getIdleTime ( ) >= $ this -> connection -> getConfig ( ) -> getIdleReconnect ( ) ) { $ this -> connection -> close ( ) -> connect ( ) ; } }
If the connection has been open as long as, or longer than, the configured idle reconnect time, then close and
reconnect the LDAP connection.

@param LdapOperationInterface $operation
If the connection has been open as long as or longer than the configured idle reconnect time then close and reconnect the LDAP connection .