keys after brpop causes crash due to timeout not being reset (#662)
This commit is contained in:
parent
3336c4f43e
commit
dc419a4e6e
@ -732,6 +732,7 @@ void unblockClientWaitingData(client *c) {
|
||||
c->bpop.xread_group = NULL;
|
||||
c->bpop.xread_consumer = NULL;
|
||||
}
|
||||
c->bpop.timeout = 0;
|
||||
}
|
||||
|
||||
static int getBlockedTypeByType(int type) {
|
||||
|
@ -1069,6 +1069,13 @@ start_server {
|
||||
r ping
|
||||
} {PONG}
|
||||
|
||||
test "Regression for bug 659 - chaining BRPOP with async blocking cmds" {
|
||||
r flushall
|
||||
r brpop foo 1
|
||||
r keys *
|
||||
r ping
|
||||
} {PONG}
|
||||
|
||||
test "client unblock tests" {
|
||||
r del l
|
||||
set rd [redis_deferring_client]
|
||||
|
Loading…
x
Reference in New Issue
Block a user