Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-17728

Add 100ms delay to BCCSP getSession Loop

    XMLWordPrintable

Details

    Description

      When requesting a session from the HSM session cache, if one is not available we attempt to open a new session with the HSM. In this scenario we attempt to open the session 10 times in a row, in a tight loop with no pause between attempts:

      https://github.com/hyperledger/fabric/blob/master/bccsp/pkcs11/pkcs11.go#L93

      We should introduce some delay to try to introduce some stable rate when opening the session instead of blasting the HSM with open session attempts.

      Attachments

        Activity

          People

            caod Danny Cao
            btl5037 Brett Logan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: