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

Driver - Optimization causes hangs in cleanly closed connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • proton-0.5
    • proton-0.6
    • proton-c
    • None

    Description

      Related to https://issues.apache.org/jira/browse/QPID-4853

      Often, when a connection is cleanly closed, the connection-close handshake completes but the connector is never closed. All that is needed is for one more connector_process cycle, but the connector never again appears in the work list.

      There is an optimization in the connector processor that says "if the socket has accepted all of the current data for send, clear the SEL_WR flag". The problem is that when the data-for-send is the last data to be sent on the connection, the connector is never again processed and hangs, using resources and keeping the socket from fully closing.

      Attachments

        1. PROTON-446.patch
          0.5 kB
          Ted Ross

        Issue Links

          Activity

            People

              tross Ted Ross
              tross Ted Ross
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: