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

WSASend incorrect error checking

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.2-rc0, 1.1.11
    • Affects Version/s: 1.1.10
    • Component/s: None
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved: