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

IoHandler.sessionClosed not called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.0-M1
    • 2.0.0-M2
    • Core
    • None
    • Mac OS X 10.5 (Intel), Java 5

    Description

      While porting to MINA 2.0 I've had a few tests fail that depend on the IoHandler.sessionClosed callback. It appears that if the acceptor closes a session in its IoHandler, the connector's IoHandler does not get a session close event.

      The attached tests demonstrate this: the one ending in MINA 1.1 works fine under MINA 1.1.5, the one ending in MINA 2.0 (which is a direct port of the 1.1 test to the MINA 2.0 API) does not: the sessionClosed method is not called when the acceptor closes its end.

      Attachments

        1. JUTestSessionClose MINA 1.1.java
          2 kB
          Matthew Phillips
        2. JUTestSessionClose MINA 2.0.java
          2 kB
          Matthew Phillips
        3. JUTestSessionCloseRegression.java
          2 kB
          Trustin Lee

        Activity

          People

            trustin Trustin Lee
            scramjet Matthew Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: