From a5613f3f7fd3a11353561360d40b9e7dcbeffc7f Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Thu, 9 Apr 2020 12:39:49 -0700 Subject: Use correct libuv call on Windows (#784) Explicitly call `uv_poll_init_socket` as that has slightly different semantics on Windows (and is identical to `uv_poll_init` on Linux). http://docs.libuv.org/en/v1.x/poll.html#c.uv_poll_init_socket --- adapters/libuv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adapters') diff --git a/adapters/libuv.h b/adapters/libuv.h index 39ef7cf..7aac127 100644 --- a/adapters/libuv.h +++ b/adapters/libuv.h @@ -106,7 +106,7 @@ static int redisLibuvAttach(redisAsyncContext* ac, uv_loop_t* loop) { memset(p, 0, sizeof(*p)); - if (uv_poll_init(loop, &p->handle, c->fd) != 0) { + if (uv_poll_init_socket(loop, &p->handle, c->fd) != 0) { return REDIS_ERR; } -- cgit v1.2.3