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

WSA connect doesn't work correctly in nonblocking mode

    XMLWordPrintable

    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. afd_crash.txt
          188 kB
          Zero3K
        2. CORE-12152_2.patch
          0.7 kB
          hater
        3. CORE-12152.patch
          53 kB
          hater
        4. CORE-12152.patch
          50 kB
          hater
        5. CORE-12152-1+2_updated.patch
          53 kB
          Zero3K
        6. CORE-12152-1+2_updated-heap_debug.patch
          68 kB
          Zero3K
        7. CORE-12152-1+2.patch
          51 kB
          usurp
        8. heap_crash.txt
          62 kB
          Zero3K
        9. K-Meleon_afd_crash_2.log
          55 kB
          Zero3K
        10. k-meleon_crash_heap_debug.txt
          1.41 MB
          Zero3K
        11. mm_crash.txt
          254 kB
          Zero3K
        12. r73321-playedABitWithCORE-12152patchFromState2016-11-19.log
          1.19 MB
          reactosfanboy
        13. steam_offline.txt
          897 kB
          Zero3K
        14. WSAAsync_2.patch
          6 kB
          hater
        15. WSAAsync.c
          6 kB
          hater
        16. WSAAsyncTest.c
          9 kB
          Miroslav Mastný

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: