Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4381

Allow to set socketTimeoutMS in the connection form

    • Type: Icon: Story Story
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.31.0
    • Affects Version/s: 1.20.0, 1.21.0, 1.22.0
    • Component/s: Connectivity
    • None
    • 3
    • Not Needed

      There is no way to specify `socketTimeoutMS` as a field in the connection screen, this is necessary to use `socketTimeoutMS` when connecting with ssl certificates.

      Context:

      `socketTimeoutMS` is the maximum amount of time for a connection in the connection pool to be inactive. After that the socket is closed and a new connection is established.

      `socketTimeoutMS` can only be specified as a connection option (in compass as a URI parameter) and affects all the operations. Unfortunately the timeout is triggered even in case of a long query, when the time of first byte is going over the `socketTimeoutMS` threshold.

      Since the default `socketTimeoutMS` is 360000 milliseconds, queries / operations taking longer than that to respond expires with an unclear error message: 'connection 33 to xxx.xxx.xxx.xxx:27017 timed out'.

            Assignee:
            Unassigned Unassigned
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: