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

Allow to set socketTimeoutMS in the connection form

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 1.20.0, 1.22.0, 1.21.0
    • Fix Version/s: None
    • Component/s: Connectivity
    • Labels:
      None

      Description

      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'.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              maurizio.casimirri Maurizio Casimirri
              Participants:
              Last commenter:
              Jessica Sigafoos
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Days since reply:
                6 weeks, 6 days ago
                Date of 1st Reply: