fix: reuse ssl context in the sync client by rhamzeh · Pull Request #222 · openfga/python-sdk

@wadells @rhamzeh

This brings ssl context handling in line with the async client.
Importantly, openssl has a pretty signifigant performance regression
in creating ssl contexts v3.0+ that is mitigated by paying the context
creation tax once, instead of for every request.

Based on testing, this reduces the openssl v3 performance penalty
from ~200ms per connection to 9ms per connection.

Original PR: openfga/sdk-generator#607

@rhamzeh

@rhamzeh rhamzeh marked this pull request as ready for review

September 12, 2025 20:33

coderabbitai[bot]

@rhamzeh rhamzeh deleted the fix/ssl-context-reuse branch

September 12, 2025 22:50