Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-12152

WSA connect doesn't work correctly in nonblocking mode

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Networking
    • Labels:
    • Sprint:
      December 2016

      Description

      Connecting socket in nonblocking mode into localhost continued by WSAEnumNetworkEvents doesn't work correctly.

      Windows connect() function always return value SOCKET_ERROR, and WSAGetLastError return WSAEWOULDBLOCK, to continue with WSAEnumNetworkEvents configured by WSAAsyncSelect/WSAEventSelect, ReactOS WSA does not.

      Simple client/server application is attached to test connecting.

      Tested with ReactOS 20161013-r72963 in VirtualBox 5.0.20

      (ReactOS seems sometimes (but not always) hang, when trying attached sample)

        Attachments

        1. CORE-12152_2.patch
          0.7 kB
        2. CORE-12152.patch
          50 kB
        3. CORE-12152-1+2.patch
          51 kB
        4. r73321-playedABitWithCORE-12152patchFromState2016-11-19.log
          1.19 MB
        5. WSAAsync_2.patch
          6 kB
        6. WSAAsync.c
          6 kB
        7. WSAAsyncTest.c
          9 kB

          Activity

            People

            • Assignee:
              hater hater
              Reporter:
              m.mastny Miroslav Mastný
            • Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: