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

Proxy socket created for KMS requests is rejecting an unhandled promise

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 6.14.2
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed
    • Not Needed

      Use Case

      As a... Node.js engineer
      I want... the proxy socket to only be created if we need it
      So that... we don't perform unnecessary setup work and create an unhandled rejection

      User Experience

      • Unhandled rejection will go away

      Dependencies

      • mongosh

      Risks/Unknowns

      • Ensure listeners are properly attached and removed that connect to a promise result

      Acceptance Criteria

      Implementation Requirements

      • Move the netSocket creation into the flagged path for when a proxy is configured
      • Ensure the willConnect promise is handled

      Testing Requirements

      • Existing tests

      Documentation Requirements

      • None

      Follow Up Requirements

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: