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

Allow Connection to be shared with mock server

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0
    • Affects Version/s: None
    • Component/s: Core
    • None

      A final step for full OP_MSG support is to teach our mock server to speak the protocol. The existing OP_QUERY support in the mock server is very limited, because the implementation was copied from the driver in pieces. There are a few pieces required to realize this dream:

      • Decouple Connection from the Pool by not passing in a messageHandler to the constructor, but use a message event instead
      • Move the "connect" logic for creating and initially connection connections out of Connection into its own method, a la net.connect

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: