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

Change Streams 'error' event not fired when the client is refused/closed by mongod

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.5.9
    • Component/s: Change Streams

      Hi,

      The event 'error' is not called when the client is not allowed to connect by mongod. This happens when mongodb configuration file setting set maxIncomingConnections to eg. 7, but more than 7 clients try to connect to listen to the changes with change streams. The driver keep trying to reconnect the refused client and no error event is triggered.

      The error event should be triggered so the developer can be alarmed and decide how to handle the logic. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            jh956687@gmail.com john hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: