Copy error to redisAsyncContext on timeout
This commit is contained in:
parent
2a5a57b90a
commit
773d6ea8a7
1
async.c
1
async.c
@ -703,6 +703,7 @@ void redisAsyncHandleTimeout(redisAsyncContext *ac) {
|
|||||||
|
|
||||||
if (!c->err) {
|
if (!c->err) {
|
||||||
__redisSetError(c, REDIS_ERR_TIMEOUT, "Timeout");
|
__redisSetError(c, REDIS_ERR_TIMEOUT, "Timeout");
|
||||||
|
__redisAsyncCopyError(ac);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(c->flags & REDIS_CONNECTED) && ac->onConnect) {
|
if (!(c->flags & REDIS_CONNECTED) && ac->onConnect) {
|
||||||
|
Loading…
Reference in New Issue
Block a user