From 1385950e4a922d9d4e5eef9b1098ef04c1f1a3d5 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 28 Jun 2022 20:59:33 -0400 Subject: [PATCH] Increase session pool size on Darwin so we don't run out of sessions. (#20086) We want to have enough sessions for all the subscriptions we will want to have. --- config/ios/CHIPProjectConfig.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/ios/CHIPProjectConfig.h b/config/ios/CHIPProjectConfig.h index 6a9d7eb3213836..dfa35f7cfd5254 100644 --- a/config/ios/CHIPProjectConfig.h +++ b/config/ios/CHIPProjectConfig.h @@ -44,4 +44,9 @@ #define CHIP_CONFIG_KVS_PATH "chip.store" #endif +// The session pool size limits how many subscriptions we can have live at +// once. Home supports up to 1000 accessories, and we subscribe to all of them, +// so we need to make sure the pool is big enough for that. +#define CHIP_CONFIG_SECURE_SESSION_POOL_SIZE 1000 + #endif /* CHIPPROJECTCONFIG_H */