exchangelib/protocol.py
def increase_poolsize(self):
        """Increases the session pool size. We increase by one session per call."""
        # Create a single session and insert it into the pool. We need to protect this with a lock while we are changing
        # the pool size variable, to avoid race conditions. We must not exceed the pool size limit.
        if self._session_pool_size == self._session_pool_maxsize:
            raise SessionPoolMaxSizeReached('Session pool size cannot be increased further')
        with self._session_pool_lock:
            if self._session_pool_size >= self._session_pool_maxsize:
                log.debug('Session pool size was increased in another thread')
                return
            log.debug('Server %s: Increasing session pool size from %s to %s', self.server, self._session_pool_size,
                      self._session_pool_size + 1)
            self._session_pool.put(self.create_session(), block=False)
            self._session_pool_size += 1
Increases the session pool size. We increase by one session per call.
Increases the session pool size. We increase by one session per call.
Increases the session pool size . We increase by one session per call .
def increase_poolsize(self):
        if self._session_pool_size == self._session_pool_maxsize:
            raise SessionPoolMaxSizeReached('Session pool size cannot be increased further')
        with self._session_pool_lock:
            if self._session_pool_size >= self._session_pool_maxsize:
                log.debug('Session pool size was increased in another thread')
                return
            log.debug('Server %s: Increasing session pool size from %s to %s', self.server, self._session_pool_size,
                      self._session_pool_size + 1)
            self._session_pool.put(self.create_session(), block=False)
            self._session_pool_size += 1
def increase_poolsize ( self ) : if self . _session_pool_size == self . _session_pool_maxsize : raise SessionPoolMaxSizeReached ( 'Session pool size cannot be increased further' ) with self . _session_pool_lock : if self . _session_pool_size >= self . _session_pool_maxsize : log . debug ( 'Session pool size was increased in another thread' ) return log . debug ( 'Server %s: Increasing session pool size from %s to %s' , self . server , self . _session_pool_size , self . _session_pool_size + 1 ) self . _session_pool . put ( self . create_session ( ) , block = False ) self . _session_pool_size += 1
Increases the session pool size.
Increases the session pool size .
"""Increases the session pool size. We increase by one session per call.""" # Create a single session and insert it into the pool. We need to protect this with a lock while we are changing # the pool size variable, to avoid race conditions. We must not exceed the pool size limit.
self