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

IoHandler's sessionCreated and sessionOpened method can receive notifications when MINA's internal socket connection built

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.0.2
    • 2.0.2, 2.0.5
    • Core
    • None
    • win xp sp3,jre6

    Description

      when I start NioSocketAcceptor,my codec sometimes receive strange data which not cames from my client.

      At first, I really appreciate the open source MINA framework and MIMA development team. The reason why I send this email is that I want to submit a bug. After binding website, NioSocketAcceptor will open multiple sockets that connect each other. Does there exist a IoSession connected with a socket? If there did, can I receive notification with the method of IoHandler sessionCreated and IoHandler sessionOpened? So how to distinguish IoSession belonging to external or internal?
      Shown by pseudo-code:
      if ( exists a IoSession connected with socket ? ){
      if (the method of IoHandler sessionCreated and IoHandler sessionOpened can receive notification ? ){
      How to distinguish IoSession belonging to external or internal?
      } else

      { So good }

      } else

      { .... }

      My question is:
      My program appears a weird problem, sometimes, the codec can receive the internal data in the socket.
      I suppose if I am able to distinguish IoSession belonging to external or internal (from client connetion), I can control the codec's work (ignoring the internal IoSession data), and so this problem is solved.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pcenshao censhao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 504h
                504h
                Remaining:
                Remaining Estimate - 504h
                504h
                Logged:
                Time Spent - Not Specified
                Not Specified