Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-843

WSASend incorrect error checking

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • 1.2-rc0, 1.1.11
    • 1.1.10
    • None
    • None

    Description

      On Windows we use WSASend() to send iovecs.

      There is a lot of type mangling going on there for the error check and eventual return type of mongoc_socket_try_sendv().

      This needs to be updated to use clean types and explicit error checking.

      We also need to check the result for SOCKET_ERROR as per the docs: https://msdn.microsoft.com/en-us/library/windows/desktop/ms742203%28v=vs.85%29.aspx

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: