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

In Memcached, read full line before sending errors

XMLWordPrintable

      In Memcached server, make sure full line is read before sending errors to clients.

      i.e. If you send this:

      $ export KEY300=<key with length 300 chars>
      $ echo -e "add $KEY300 0 0 1\r\nget a\r" | nc localhost 11212

      The first command should be considered an error but the second part should be consumed without problems.

      Original Memcached server would return:
      CLIENT_ERROR bad command line format
      END

      Whereas Infinispan one returns this and the GET is ignored:
      CLIENT_ERROR org.infinispan.server.core.ServerException: java.io.IOException: Key length over the 250 character limit

      More info in linked JBPAPP issue.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: