Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14495

RESP endpoint cannot parse request larger than packet size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 14.0.7.Final, 15.0.0.Final
    • 14.0.6.Final
    • RESP
    • None

    Description

      When testing RESP endpoint with redis-benchmark tool it was found that when using a value size larger than a given size (in my example it was 1960 bytes) it would cause the connection to be lost. Upon further investigation it was found the decoder would have a request of the value size for a command name. This is because the read buffer is not reset when the buffer does not complete the entire request.

      We need to reset the reader index when a request isn't full parsed to prevent this.

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: