Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18193

A POLLHUP event is returned from wait_read and allow recv() in readtms, causing a confusing error.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: JLib
    • Labels:
      None

      Description

      It appears that if a POLLHUP event is returned from poll() (e.g. in wait_read()), then it will be returned to the caller.

      In readtms(), which calls wait_read(), it then proceeds to call recv().

      It seems (at least sometimes) that this causes recv to return a ETIMEDOUT, which is reported back to the client.

      The client/user sees a "readtms(timeoutms=%d)" Connection timed out exception, which is confusing, especially when the timeout is significantly longer than the time it took to hit the poll event.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mckellyln Mark Kelly
                Reporter:
                jakesmith Jake Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: