Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-1049

Specify socket/connect timeout to use for KMS requests

    • Hide

      Summary of necessary driver changes

      •  

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      •  

      Context for other referenced/linked tickets

      •  
      Show
      Summary of necessary driver changes   Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed)   Context for other referenced/linked tickets  

      Summary

      Specify socket/connect timeout to use for KMS requests

      Consider adding an option to configure the timeout.

      Background & Motivation

      When libmongocrypt enters the MONGOCRYPT_CTX_NEED_KMS state, drivers are expected to connect with TLS to a KMS service and do a socket write and read. It is not currently specified what socket/connect timeouts are expected.

      Drivers do not appear to apply timeouts consistently (ranging from 10 seconds, to 5 minutes, to "no timeout"). There is a report of KMS timeouts observed under heavy load with the Java driver using the 10 second timeout.

            Assignee:
            Unassigned Unassigned
            Reporter:
            esha.bhargava@mongodb.com Esha Bhargava
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: