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

WSA connect doesn't work correctly in nonblocking mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Networking
    • 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
        2. CORE-12152_2.patch
          0.7 kB
        3. CORE-12152_async_patch_refreshed_2022-10-04_by_TheDarkFire.patch
          53 kB
        4. CORE-12152.patch
          53 kB
        5. CORE-12152.patch
          50 kB
        6. CORE-12152-1+2_updated.patch
          53 kB
        7. CORE-12152-1+2_updated-heap_debug.patch
          68 kB
        8. CORE-12152-1+2.patch
          51 kB
        9. heap_crash.txt
          62 kB
        10. K-Meleon_afd_crash_2.log
          55 kB
        11. k-meleon_crash_heap_debug.txt
          1.41 MB
        12. mm_crash.txt
          254 kB
        13. r73321-playedABitWithCORE-12152patchFromState2016-11-19.log
          1.19 MB
        14. steam_offline.txt
          897 kB
        15. WSAAsync_2.patch
          6 kB
        16. WSAAsync.c
          6 kB
        17. WSAAsyncTest.c
          9 kB

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              hater hater
              m.mastny Miroslav Mastný
              Votes:
              17 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated: