Skip to content

Commit 8ecc5c0

Browse files
committed
add recv error code for clarifying timeout
1 parent ead43bc commit 8ecc5c0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net.c

-2
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@ int redisNetRead(redisContext *c, char *buf, size_t bufcap) {
6464
/* Try again later */
6565
return 0;
6666
}
67-
#ifdef _WIN32
6867
else if(errno == ETIMEDOUT && (c->flags & REDIS_BLOCK)) {
6968
/* especially in windows */
7069
__redisSetError(c, REDIS_ERR_TIMEOUT, "recv timeout");
7170
return -1;
7271
}
73-
#endif
7472
else {
7573
__redisSetError(c, REDIS_ERR_IO, NULL);
7674
return -1;

0 commit comments

Comments
 (0)