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

SSLHandler writes corrupt messages under heavy load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.11
    • 2.0.13
    • SSL
    • None

    Description

      I’m facing a critical problem in my project with an MINA-stack including SSL. My Protocol-IoFilterAdapter receives corrupt messages under heavy load (JMeter-Benchmark with 300 Threads and round about 5-10 MINA-calls per thread). The Problem disappeared without SSL, so I debugged for some days, and I think the problem occurred because of the changes made for fixing the issue DIRMINA-1019 (commit). I think the problem is that the SSLHandler is calling messageReceived while also writing data into the next filter, which is writing inside the messageReceivedEventQueue. With the fix provided inside the race-condition-ticket, it works like a charm. So I think that the answer of the question "Why the second loop is also protected by the loop?" is: because otherwise the messageReceivedEventQueue gets corrupted data...

      (I hope I’m not wrong and anybody can follow my thoughts and maybe bad English)

      Attachments

        Activity

          People

            Unassigned Unassigned
            Coulton Michael Kohlsche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: