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

jsocket wait_multiple potentially returns more ready sockets that it fills into readySocks

    XMLWordPrintable

    Details

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

      Description

      When poll() or select() gets an event on >=1 socket, it scans for events and fills in readySockets.
      In some circumstances there will be no events on a socket and therefore readySocks will not be added to.
      However wait_multiple still returns the number returned by poll() or select().

      Code that uses wait_multiple (or wait_read_multiple/wait_write_multiple), will then check the readySocks items that aren't there (and typically assert as a consequence).

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: