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

logPollError - if errno is ECONNRESET or some others then skip getsockopt() to avoid misleading errno

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JLib
    • Labels:
      None
    • Compatibility:
      Point

      Description

      if ::poll() fails then logPollError() is called and if POLLERR is set then getsockopt() is called to try and get more info about the error. But for some cases, such as socket was disconnected (ECONNRESET) there is no point in calling getsockopt() and doing so can in fact change the errno to something misleading (such as EWOULDBLOCK) when it should remain ECONNRESET.

        Attachments

          Activity

            People

            • Assignee:
              mckellyln Mark Kelly
              Reporter:
              mckellyln Mark Kelly
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: