Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2347

Reactor leaks file handles when an IO Exception is encountered

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: proton-j-0.33.8
    • Fix Version/s: proton-j-future
    • Component/s: proton-j
    • Labels:
      None
    • Environment:
      Windows 10 desktop

      Description

      When I try to open a connection using proton-j while my machine doesn't have internet access, I see that proton-j leaks file descriptors. Attached is the sample I wrote that repro's this issue.  I'm looking either for guidance on how to handle IOExceptions in the onTransportError callback, or for a confirmation that what I'm doing to handle them is correct, and that there is a bug in proton-j around this scenario.

       

      If you need help viewing the file descriptor count growing over time, the process explorer tool is what I've been using. Running the sample in a loop will make this leak more obvious, but it isn't required to leak the file descriptors. This same bug seems to happen in Linux and MacOS as well.

        Attachments

        1. repro.txt
          2 kB
          Tim Taylor

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                timtay-microsoft Tim Taylor
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: