Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-741

Option "serverSelectionTimeoutMS" is ignored if set in connection URI

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.2.0
    • Affects Version/s: None
    • None

      If serverSelectionTimeoutMS is set in URI it is  not set but default 30s timeout is always used.

      It seems to be quite trivial omission here, in case "serverselectiontimeoutms" block:

      https://github.com/mongodb/mongo-go-driver/blob/master/x/network/connstring/connstring.go#L570

      It seems that bug is caused by property "ServerSelectionTimeoutSet" being not set at the end of case block.
       

            Assignee:
            go-community-user Go Community User
            Reporter:
            adamwasila Adam Wasila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: