Make SSL timeout error compatible with rest.
This commit is contained in:
parent
d41443bd3d
commit
a1e538092d
2
ssl.c
2
ssl.c
@ -337,7 +337,7 @@ static int redisSSLRead(redisContext *c, char *buf, size_t bufcap) {
|
|||||||
} else {
|
} else {
|
||||||
const char *msg = NULL;
|
const char *msg = NULL;
|
||||||
if (errno == EAGAIN) {
|
if (errno == EAGAIN) {
|
||||||
msg = "Timed out";
|
msg = "Resource temporarily unavailable";
|
||||||
}
|
}
|
||||||
__redisSetError(c, REDIS_ERR_IO, msg);
|
__redisSetError(c, REDIS_ERR_IO, msg);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user