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

[Java Broker] Hand off selection task only if connection tasks need to be processed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • qpid-java-6.1
    • Broker-J
    • None

    Description

      Currently the selector thread always reschedules the selection task on the workQueue. In the case where the select was awoken for the purpose of reregistering a connection on the selector, there will be no connection work to be done, so the potential hand off to of the selection task will be needless.

      We can simply optimise the algorithm to hand off responsibility for the selection iff there is connection work that can be consumed by this thread.

      Attachments

        Activity

          People

            orudyy Alex Rudyy
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: