diff options
author | shiyuge <shiyuge@outlook.com> | 2020-09-23 15:46:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 15:46:20 +0800 |
commit | 773d6ea8a73de57279a8733aa884bc5710816779 (patch) | |
tree | 74be4fedc0278f9f3206b18d1dcb08bab1b12262 | |
parent | 2a5a57b90a57af5142221aa71f38c08f4a737376 (diff) |
Copy error to redisAsyncContext on timeout
-rw-r--r-- | async.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -703,6 +703,7 @@ void redisAsyncHandleTimeout(redisAsyncContext *ac) { if (!c->err) { __redisSetError(c, REDIS_ERR_TIMEOUT, "Timeout"); + __redisAsyncCopyError(ac); } if (!(c->flags & REDIS_CONNECTED) && ac->onConnect) { |