Don't wait for QUEUED replies in MULTI

This commit is contained in:
Pieter Noordhuis
2011-02-25 13:44:54 +01:00
parent dad1b8c394
commit dac1d259c0
6 changed files with 200 additions and 382 deletions

View File

@@ -192,8 +192,12 @@ public class Connection {
}
public List<Object> getAll() {
return getAll(0);
}
public List<Object> getAll(int except) {
List<Object> all = new ArrayList<Object>();
while (pipelinedCommands > 0) {
while (pipelinedCommands > except) {
all.add(protocol.read(inputStream));
pipelinedCommands--;
}