The following changes were made by the replace_file_content tool to: /root/MayaXSenderbot/bridge.py. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -463,8 +463,14 @@ USERS_DIR.mkdir(parents=True, exist_ok=True) SESSIONS_DIR.mkdir(parents=True, exist_ok=True) - # Increase TCP connector limit for 3k+ concurrent users - connector = aiohttp.TCPConnector(limit=5000, enable_cleanup_closed=True) + # High-performance TCP connector with DNS caching, warm keepalive & TCP_NODELAY + connector = aiohttp.TCPConnector( + limit=5000, + ttl_dns_cache=600, + keepalive_timeout=90, + enable_cleanup_closed=True, + tcp_nodelay=True, + ) self.http = aiohttp.ClientSession(connector=connector) self._migrate_legacy_workspace_if_needed() self._migrate_fcm_urls() [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.