Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-187

Support IoHandler per IoSession (SingleSessionIoHandler)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.3
    • None
    • None

    Description

      Currently, when binding an IoAcceptor a single IoHandler is specified that is shared among all sessions. This shared IoHandler cannot use instance variables (without proper synchronization), because it is accessed concurrently by multiple threads. The handler state has to be stored as session attributes. However, if there was one IoHandler per IoSession, state stored in instance variables of the IoHandler could be used safely.

      The attached zip file contains an implemented solution (as suggested by Niklas Therning) for this idea. See the following post in the mailing list archive for a detailed description:

      http://mail-archives.apache.org/mod_mbox/directory-mina-dev/200603.mbox/%3c440D9FDE.9010701@trillian.se%3e

      What do you think?

      Attachments

        1. single-session-handler.zip
          6 kB
          Simon Raess

        Activity

          People

            trustin Trustin Lee
            rasss Simon Raess
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: