Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2070

Using --uri without a timeout parameter overrides default Timeout to zero

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.0.0
    • Component/s: All Tools
    • None

      When a --uri is provided, the URI connection timeout (usually zero) overrides the default connection timeout of 3 seconds:

      // in setOptionsFromURI in common/option/options.go 
      opts.Connection.Timeout = int(cs.ConnectTimeout / time.Millisecond)
      

      This manifests as a tool hanging on connection if a topology is down or if a cluster requires TLS and the tool isn't in TLS mode.

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: