docs: SSL context performance issues
This commit is contained in:
parent
953d71503b
commit
47380c9fe3
@ -99,3 +99,7 @@ If you do need to make HTTPS connections to a local server, for example to test
|
||||
ctx = ssl.create_default_context(cafile="client.pem")
|
||||
client = httpx.Client(verify=ctx)
|
||||
```
|
||||
|
||||
### SSL context performance issues
|
||||
|
||||
It takes about 20ms to create an SSL context. While the default SSL context is cached, this issue is impactful if creating a number of clients (contexts) with a custom SSL context. It is recommended to reuse the same client in this case.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user