Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
773d6ea8
Unverified
Commit
773d6ea8
authored
Sep 23, 2020
by
shiyuge
Committed by
GitHub
Sep 23, 2020
Browse files
Copy error to redisAsyncContext on timeout
parent
2a5a57b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
773d6ea8
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment