Node Driver
  1. Node Driver
  2. NODE-4

connectTimeoutMS not honored for replica set connections

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      driver 1.1.11, Node 0.8.11
    • Operating System:
      ALL
    • # Replies:
      4
    • Last comment by Customer:
      false

      Description

      The value appears to be hard-coded to 1000ms.

      https://github.com/mongodb/node-mongodb-native/blob/3709204430a3783c41077f6c58c1b11bb7fc5053/lib/mongodb/connection/repl_set.js

      This causes problems when trying to connect during a warmup phase on PaaS services such as Heroku.

      https://github.com/jcottr/temps-mort

        Activity

        Hide
        Aaron Heckmann (Inactive)
        added a comment -

        I just submitted the fix here: https://github.com/mongodb/node-mongodb-native/pull/750

        We will review / merge / publish the bugfix by early next week.

        Show
        Aaron Heckmann (Inactive)
        added a comment - I just submitted the fix here: https://github.com/mongodb/node-mongodb-native/pull/750 We will review / merge / publish the bugfix by early next week.
        Hide
        Jared D. Cottrell
        added a comment -

        Awesome, thanx for the quick turn-around!

        Show
        Jared D. Cottrell
        added a comment - Awesome, thanx for the quick turn-around!
        Hide
        Christian Amor Kvalheim
        added a comment -

        this will be in 1.1.12 that will be out soon

        Show
        Christian Amor Kvalheim
        added a comment - this will be in 1.1.12 that will be out soon
        Hide
        Christian Amor Kvalheim
        added a comment -

        Merged into 1.2 and will be out on next push hopefully nov 20

        Show
        Christian Amor Kvalheim
        added a comment - Merged into 1.2 and will be out on next push hopefully nov 20

          People

          • Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 22 weeks, 3 days ago
              Date of 1st Reply: