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

RESP endpoint cannot parse request larger than packet size

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

      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.

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: