Make SSL timeout error compatible with rest.

This commit is contained in:
Yossi Gottlieb 2019-09-16 17:16:44 +03:00
parent d41443bd3d
commit a1e538092d

2
ssl.c
View File

@ -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;