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

Allow Connection to be shared with mock server

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: core
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              matt.broadstone Matt Broadstone
              Reporter:
              matt.broadstone Matt Broadstone
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: