In Memcached, read full line before sending errors
--------------------------------------------------
Key: ISPN-782
URL:
https://jira.jboss.org/browse/ISPN-782
Project: Infinispan
Issue Type: Bug
Components: Cache Server
Affects Versions: 4.2.0.BETA1, 4.1.0.Final
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 4.2.0.CR1, 4.2.0.Final
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.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira