Treat any other type of reply as an error
This commit is contained in:
@@ -91,8 +91,10 @@ public class Protocol {
|
|||||||
return processInteger(is);
|
return processInteger(is);
|
||||||
} else if (b == DOLLAR_BYTE) {
|
} else if (b == DOLLAR_BYTE) {
|
||||||
return processBulkReply(is);
|
return processBulkReply(is);
|
||||||
} else {
|
} else if (b == PLUS_BYTE) {
|
||||||
return processStatusCodeReply(is);
|
return processStatusCodeReply(is);
|
||||||
|
} else {
|
||||||
|
throw new JedisException("Unknown reply");
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new JedisException(e);
|
throw new JedisException(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user