Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-169

Windows socket code takes a long time to fail when connecting to a non-existent server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Final
    • 7.0.0.Alpha1
    • Core
    • None

    Description

      If you run the simple unit test executable on Linux when no server is running, it fails almost instantly. On Windows, it takes much longer for the executable to exit. This is because the first attempt to connect to the non-existent server returns error 10035 (WSAEWOULDBLOCK) which causes the code to wait for the socket to be ready which fails, and then the command is retried multiple times before it fails.

      Trying to figure out how to detect that the socket is not listening or some other option on Windows.

      Attachments

        Activity

          People

            isavin_jira Ion Savin (Inactive)
            rhn-support-afield Alan Field
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: