gwhalin/Memcached-Java-Client — Issue #37: incorrect conditional statement for NOT_FOUND status
Author: goldaxe
Created: 2012-01-11 07:35:59+00:00
State: open

Memcached-Java-Client 2.6.3

In code com.schooner.MemCached.AscIIClient

line 580： String line = new SockInputStream(sock, Integer.MAX_VALUE).getLine().split("\r\n")[0];
line 585： } else if (NOTFOUND.equals(line)) {

And com.danga.MemCached.MemCachedClient.NOTFOUND = "NOT_FOUND\r\n", but variable line = "NOT_FOUND", so the result of line 585 is always FALSE.