Refactor getID() and locking in SSLThreadInfo

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: