Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow blocking calls in JdkSslContext class initializer (#12435)
Motivation: Classes might be initialized inside the event loop where blocking calls are otherwise forbidden. The JdkSslContext has a blocking call in its class initializer through initializing the Java SSLContext which does IO to deserialize its key store. Modification: Collect the class initialization code in a method, and allow it to have blocking calls in blockhound. Result: No more blockhound warnings about blocking calls in JdkSslContext class initializer. Fixes #12425 Co-authored-by: Norman Maurer <norman_maurer@apple.com>
- Loading branch information
1 parent
a2f101a
commit 2cd0b4c
Showing
2 changed files
with
46 additions
and
21 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