Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7355

qpid-cpp-client holding open file descriptors to dead tcp sockets after connection is closed

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: qpid-cpp-0.34
    • Fix Version/s: None
    • Component/s: C++ Client
    • Labels:
      None

      Description

      We use the qpid-cpp-client-0.34-6.el7.x86_64 driver in one of our applications.

      I'm noticing a lot of open files (to dead TCP sockets) that are being held open and it appears that they are qpid related (this project don't open any TCP connections other than what the qpid client handles).

      Is there perhaps something I need to do on the underlying qpid::messaging::Connection other than call close() in order for the file descriptor to be closed?

      Here's some representative output from lsof:

      #lsof | grep "^cloud" | grep -v ESTABLISHED | grep TCP | head -n 1
      COMMAND    PID  TID    USER   FD      TYPE             DEVICE  SIZE/OFF       NODE NAME
      cloudisti 6387 6404    root   55u     sock                0,6       0t0      66423 protocol: TCP
      
      # lsof | grep "^cloud" | grep -v ESTABLISHED | grep TCP | wc -l
      192
      

      For what its worth, we don't see this issue in another of our applications, which uses a driver built from the qpid-cpp-0.34-rc branch.

        Attachments

          Activity

            People

            • Assignee:
              gsim Gordon Sim
              Reporter:
              knappch Chester Knapp
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: