-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ThreadLocalSSLContextProvider EventBase-local
Summary: If the context is associated to the connection it should be local to the `EventBase`, not the thread, in case the `EventBase` migrates threads. `EventBaseLocal` is slightly more expensive than `thread_local`, but the overall cost of the `get{Client,Server}ContextInfo` functions is completely negligible, so the overhead here will likely not even be measurable: https://pxl.cl/4r09g See motivation here https://fb.prod.workplace.com/groups/143349833027145/posts/1305210553507728 Reviewed By: disylh Differential Revision: D54159214 fbshipit-source-id: 238cb2bcbd2b438e5a32746eb2f6e840fd0234e8
- Loading branch information
1 parent
94f6028
commit 1c2a60a
Showing
5 changed files
with
68 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters