Files
bun.sh/packages
Claude Bot 0aeb07f466 Optimize TLS store creation with template caching and duplication
This optimization creates a template X509_STORE once (with all certificates
loaded from disk and memory) and then duplicates it for each use. This
approach:

1. Calls expensive X509_STORE_set_default_paths() only ONCE
2. Each SSL_CTX gets its own independent store (required for ownership)
3. Custom CA certificates can be added to each store independently
4. Maintains full compatibility with existing TLS behavior

The template store is created on first use and cached. Subsequent calls
duplicate the certificates from the template, which is much faster than
re-parsing from disk.

This fixes the test failures in test-tls-client-verify.js while still
providing the performance optimization.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 09:55:23 +00:00
..
2025-07-10 00:10:43 -07:00
2025-07-10 00:10:43 -07:00
2025-09-09 23:31:07 -07:00