Skip to content

Commit 0f99b70

Browse files
Maybe this is an issue on macOS?
1 parent f60ab94 commit 0f99b70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

net.c

+4
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,11 @@ int redisContextConnectUnix(redisContext *c, const char *path, const struct time
668668
sa->sun_family = AF_UNIX;
669669
strncpy(sa->sun_path, path, sizeof(sa->sun_path) - 1);
670670
if (connect(c->fd, (struct sockaddr*)sa, sizeof(*sa)) == -1) {
671+
#if defined(__APPLE__) && defined(__MACH__)
672+
if (errno == EINPROGRESS && !blocking) {
673+
#else
671674
if ((errno == EAGAIN || errno == EINPROGRESS) && !blocking) {
675+
#endif
672676
/* This is ok. */
673677
} else {
674678
if (redisContextWaitReady(c,timeout_msec) != REDIS_OK)

0 commit comments

Comments
 (0)