13 Commits

Author SHA1 Message Date
371fe768cb fix: share SSL context across StreamHttpClient instances to reduce memory leaks
Each StreamHttpClient() was calling ssl.create_default_context() which
loads the full CA cert chain (~5-10KB) into memory. Under high concurrency
(100+ parallel t2t model calls) this caused significant memory growth.

Now uses a module-level singleton _SHARED_SSL_CONTEXT, created once and
reused by all instances.
2026-06-27 18:33:12 +08:00
6b874dc50d bugfix 2026-06-27 16:11:10 +08:00
1976f645cb bugfix 2025-10-16 12:21:17 +08:00
849bcedc3a bugfix 2025-10-16 12:01:13 +08:00
bb46348f8d bugfix 2025-10-16 11:58:15 +08:00
e4f344940c bugfix 2025-10-14 15:52:37 +08:00
a06fd181ad bugfix 2025-10-14 15:33:48 +08:00
064f82dec6 bugfix 2025-10-14 15:30:40 +08:00
9581c2a8b3 bugfix 2025-10-14 15:28:12 +08:00
yumoqing
7009a89723 bugfix 2025-09-14 10:25:23 +08:00
865ea0d9e4 bugfix 2025-08-14 17:48:25 +08:00
750fc04cd7 bugfix 2025-08-14 17:39:22 +08:00
af62253bd7 first commit 2025-07-16 11:09:20 +08:00