Option "serverSelectionTimeoutMS" is ignored if set in connection URI

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.2.0
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Adam Wasila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: