Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
None
-
None
-
Service Arch
Description
We can replace the getID() function in SSLThreadInfo (see here) with OS-specific APIs (e.g, gettid() on Linux and GetCurrentThreadId() on Windows) that provide the same functionality. The getID() function is only required by versions before OpenSSL 1.1.0, and removing it would simplify the code and facilitate maintenance.
Also, the locking functionality in SSLThreadInfo can be simplified/improved to use a singleton pattern.