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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

      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.

              ttarrant@redhat.com Tristan Tarrant
              rhn-support-afield Alan Field
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: