Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved create and verify ssl context function into the utils and included lru cache. #986

Closed
wants to merge 1 commit into from

Conversation

cansarigol
Copy link
Contributor

@cansarigol cansarigol commented May 23, 2020

Refs #978

globally caching our SSL contexts suggestion of @tomchristie .

@cansarigol cansarigol force-pushed the cache_ssl_context branch 5 times, most recently from 4bab0af to cb78e5e Compare May 24, 2020 12:40
@florimondmanca
Copy link
Member

florimondmanca commented May 24, 2020

Hi @cansarigol, thanks for tackling this!

From what I can see, this PR tries to address both #978 and #983. It's probably best that we keep fixes for these separate.

Most likely #983 is higher priority, as it would make SSLConfig go away (and this PR currently uses it for the other part).

@cansarigol cansarigol force-pushed the cache_ssl_context branch from cb78e5e to 76bb86c Compare May 25, 2020 14:42
@cansarigol
Copy link
Contributor Author

cansarigol commented May 25, 2020

Hi @florimondmanca , I thought that we can handle in a single PR and I can include a test about SSLConfig().ssl_context == httpx.create_ssl_context() . Separately better as you said.

@tomchristie
Copy link
Member

Closing in favour of #996

@tomchristie
Copy link
Member

tomchristie commented May 25, 2020

Incidentally let's not jump straight in with implementing SSLContext caching once #996 is in.
I think that aspect is worth considering, but I don't think it's necessarily a given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants