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

ConnectionThrottleFilter doesn't forward sessionCreated event.

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M1
    • 2.0.0-M2
    • Filter
    • None

    Description

      If you look into ConnectionThrottleFilter.sessionCreated():

      @Override
      public void sessionCreated(NextFilter nextFilter, IoSession session)
      throws Exception {
      if (!isConnectionOk(session))

      { logger.warn("Connections coming in too fast; closing."); session.close(); }
      }

      ConnectionThrottleFilter doesn't forward sessionCreated event to the next filter. It should look like the following:

      @Override
      public void sessionCreated(NextFilter nextFilter, IoSession session)
      throws Exception {
      if (!isConnectionOk(session)) { logger.warn("Connections coming in too fast; closing."); session.close(); }

      nextFilter.sessionCreated(session);
      }

      Attachments

        Activity

          There are no comments yet on this issue.

          People

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

            Dates

              Created:
              Updated:
              Resolved: