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

Option "serverSelectionTimeoutMS" is ignored if set in connection URI

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 0.2.0
    • None
    • None

    Description

      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.
       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: