Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26904

URI parse interprets `socketTimeoutMS` value as seconds (not ms)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc3
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2016-11-21

      Description

      MongoURI::connect parses the value of the argument, then passes it to ConnectionString::connect, which hands it off to DBClientConnection::setSoTimeout which takes seconds.

      Since this is clearly too easy to get wrong, I think the fix should be to switch to using durations. for all of the above.

      However the alternative is to divide by 1000 right after parsing because ConnectionString::connect is also called (correctly?) with a value in seconds.

        Attachments

          Activity

            People

            Assignee:
            matt.cotter Matt Cotter
            Reporter:
            matt.cotter Matt Cotter
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: