diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e852e9afe..521e04998 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,7 +133,7 @@ jobs: - name: Install dependencies run: | - brew install openssl redis@7.2 + brew install openssl@3 redis@7.2 brew link redis@7.2 --force - name: Build hiredis diff --git a/net.c b/net.c index 8b7831e35..b514babaf 100644 --- a/net.c +++ b/net.c @@ -668,7 +668,7 @@ int redisContextConnectUnix(redisContext *c, const char *path, const struct time sa->sun_family = AF_UNIX; strncpy(sa->sun_path, path, sizeof(sa->sun_path) - 1); if (connect(c->fd, (struct sockaddr*)sa, sizeof(*sa)) == -1) { - if (errno == EINPROGRESS && !blocking) { + if ((errno == EAGAIN || errno == EINPROGRESS) && !blocking) { /* This is ok. */ } else { if (redisContextWaitReady(c,timeout_msec) != REDIS_OK)