Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-2014

Reset ConnectionListener callback object on re-init

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.2
    • Component/s: None
    • Labels:
      None

      Description

      When re-initializing a connection (to give it a new Session owner), the existing ConnectionCloseListener instances need to be updated. When they were initially registered, their registration included a reference to the old session instance (to be used as a callback value). Without replacing that value, whenever the connection is closed, the reference to the old session is used (instead of the new session that replaced it). This causes problems with Stream Management (which tries to detach an old session that no longer exists).

        Attachments

          Activity

            People

            Assignee:
            guus Guus der Kinderen
            Reporter:
            guus Guus der Kinderen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: