Wrap socket write in a try/catch to ensure errors can be properly wrapped

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 6.17.0
    • Component/s: CMAP, Connection Layer
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As described in https://www.mongodb.com/community/forums/t/mongodb-node-js-driver-vs-aws-lambda-with-provisioned-concurrency/326386, a Node.js writeAfterFIN error can bubble up to the driver.

      In NODE-6864, all socket errors were handled to be wrapped in MongoNetworkErrors, however this doesn't appear to be handled.

              Assignee:
              Unassigned
              Reporter:
              Alex Bevilacqua
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: