How many connections when share a account in ThreadPoolExecutor? #1344
Replies: 1 comment 3 replies
-
Protocol instances are cached and reused across multiple accounts. The caching is based on the server's EWS endpoint and the credentials used for authentication, so multiple accounts hosted on the same server will share a single protocol instance. This happens in exchangelib/exchangelib/protocol.py Line 397 in 7da64d7 By default, only one connection is opened per protocol instance. As the comment states, you can increase that limit on agreement with the server admins. Additionally, if you're using streaming subscriptions, then you'll need at least two connections, as described in https://ecederstrand.github.io/exchangelib/#synchronization-subscriptions-and-notifications |
Beta Was this translation helpful? Give feedback.
-
I'm new in exchangelib, and I have some confusions about the account.protocol.
when I share the single account instance run in ThreadPoolExecutor, how many connections would established?
can one account.protocol's session be used in multiple threads at same time, whether it be blocked by SESSION_POOL?
when I set CONNECTIONS_PER_SESSION=10, How does it work?
I want clarify the mechanism!
Is there anyone explain it for me?
appreciate very much!!!
Beta Was this translation helpful? Give feedback.
All reactions