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

HttpServerDecoder is broken in certain condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.7
    • 2.0.8
    • Protocol - HTTP

    Description

      HttpServerDecoder is broken in the case an HTTP request is received in two separate packets and the first one is not big enough to contain the header.
      So, when the first packed is received, the state is switch to HEAD, and the incoming packed is saved in the context.
      When the second packet is received, then the header is decoded and written to the output and the state is switched to BODY. But as the incoming buffer has been accumulated into with the context buffer, its remaining is 0 and the caller will not call the decoder again. So when the next request is received, the state will be BODY and CRASH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      We should check if this also applies to 3.0

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeffmaury Jeff Maury
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: