Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-896

socketTimeoutMS URL parameters not working

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.18
    • Affects Version/s: 2.2.12
    • Component/s: None

      Setting socketTimeoutMS as connection url parameter has no effect.

      Debugging into mongo_client.js shows that the socketTimeoutMS parameter appears in the _finalOptions variable, in mongos_options.socketOptions, rs_options.socketOptions and server_options.socketOptions properties.

      After that, the _finalOptions.socketTimeoutMS is set to the default value:
      if(_finalOptions.socketTimeoutMS == null) _finalOptions.socketTimeoutMS = 30000;

      _finalOptions.socketTimeoutMS is always undefined, because the value is in the mongos_options.socketOptions, etc.

            Assignee:
            Unassigned Unassigned
            Reporter:
            zoltan.mihalyi Zoltán Mihályi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: