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

Socket::read should retry when it receives an appropriate error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.CR2
    • 6.0.2.Final
    • None
    • None

    Description

      Socket reads should be retried when the attempt to read returns either EAGAIN or EINTR meaning that the command should be tried again or has been interrupted. On Windows the equivalent return values are WSATRY_AGAIN and WSAEINTR. The current code on Linux returns -1 in this situation. I found this issue while trying to add the ServerFailureRetryTest to the JniTest class.

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            rhn-support-afield Alan Field
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: