Unverified Commit 773d6ea8 authored by shiyuge's avatar shiyuge Committed by GitHub
Browse files

Copy error to redisAsyncContext on timeout

parent 2a5a57b9
...@@ -703,6 +703,7 @@ void redisAsyncHandleTimeout(redisAsyncContext *ac) { ...@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment