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

Setting connectionTimeoutMS to 0 will result in a disconnection every heartbeatFrequencyMS

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.4
    • Affects Version/s: 3.6.2
    • Component/s: None
    • Labels:

      When connecting to mongoDB setting

      connectTimeoutMS: 0

      the mongodb client emits a MongoNetworkTimeoutError every times the heartbeat expires. (defaults to every 10 seconds).

      It could be that at

      https://github.com/mongodb/node-mongodb-native/blob/3.6/lib/core/sdam/monitor.js#L208

      The socket timeout is equated to the heartbeat timeout, resulting in a socket failure?

            Assignee:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Reporter:
            daniele.bellavista@yoroi.company Daniele Bellavista
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: