exchangelib/protocol.py
def decrease_poolsize(self):
        """Decreases the session pool size in response to error messages from the server requesting to rate-limit
        requests. We decrease by one session per call.
        """
        # Take a single session from the pool and discard it. We need to protect this with a lock while we are changing
        # the pool size variable, to avoid race conditions. We must keep at least one session in the pool.
        if self._session_pool_size <= 1:
            raise SessionPoolMinSizeReached('Session pool size cannot be decreased further')
        with self._session_pool_lock:
            if self._session_pool_size <= 1:
                log.debug('Session pool size was decreased in another thread')
                return
            log.warning('Server %s: Decreasing session pool size from %s to %s', self.server, self._session_pool_size,
                        self._session_pool_size - 1)
            session = self.get_session()
            self.close_session(session)
            self._session_pool_size -= 1
Decreases the session pool size in response to error messages from the server requesting to rate-limit
        requests. We decrease by one session per call.
        
Decreases the session pool size in response to error messages from the server requesting to rate-limit
requests. We decrease by one session per call.
Decreases the session pool size in response to error messages from the server requesting to rate - limit requests . We decrease by one session per call .
def decrease_poolsize(self):
        if self._session_pool_size <= 1:
            raise SessionPoolMinSizeReached('Session pool size cannot be decreased further')
        with self._session_pool_lock:
            if self._session_pool_size <= 1:
                log.debug('Session pool size was decreased in another thread')
                return
            log.warning('Server %s: Decreasing session pool size from %s to %s', self.server, self._session_pool_size,
                        self._session_pool_size - 1)
            session = self.get_session()
            self.close_session(session)
            self._session_pool_size -= 1
def decrease_poolsize ( self ) : if self . _session_pool_size <= 1 : raise SessionPoolMinSizeReached ( 'Session pool size cannot be decreased further' ) with self . _session_pool_lock : if self . _session_pool_size <= 1 : log . debug ( 'Session pool size was decreased in another thread' ) return log . warning ( 'Server %s: Decreasing session pool size from %s to %s' , self . server , self . _session_pool_size , self . _session_pool_size - 1 ) session = self . get_session ( ) self . close_session ( session ) self . _session_pool_size -= 1
Decreases the session pool size in response to error messages from the server requesting to rate-limit
requests.
Decreases the session pool size in response to error messages from the server requesting to rate - limit requests .
"""Decreases the session pool size in response to error messages from the server requesting to rate-limit
        requests. We decrease by one session per call.
        """ # Take a single session from the pool and discard it. We need to protect this with a lock while we are changing # the pool size variable, to avoid race conditions. We must keep at least one session in the pool.
self