From ee6303db3a16a368e13d660b650915a326db3250 Mon Sep 17 00:00:00 2001 From: George Zhao Date: Wed, 22 Apr 2020 18:19:37 +0800 Subject: [PATCH 1/2] Update libuv to 1.37.0 --- deps/libuv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/libuv b/deps/libuv index 533b7388..02a9e1be 160000 --- a/deps/libuv +++ b/deps/libuv @@ -1 +1 @@ -Subproject commit 533b738838ad8407032e14b6772b29ef9af63cfa +Subproject commit 02a9e1be252b623ee032a3137c0b0c94afbe6809 From 7fa4a749845d7ec04f0b5d312e19f81366fd2f16 Mon Sep 17 00:00:00 2001 From: George Zhao Date: Wed, 22 Apr 2020 18:20:37 +0800 Subject: [PATCH 2/2] add UDP and TCP flags to uv constants table --- src/constants.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/constants.c b/src/constants.c index 3417028c..f918fe10 100644 --- a/src/constants.c +++ b/src/constants.c @@ -305,6 +305,22 @@ static int luv_constants(lua_State* L) { lua_pushinteger(L, SIGSYS); lua_setfield(L, -2, "SIGSYS"); #endif +#if LUV_UV_VERSION_GEQ(1, 37, 0) + lua_pushinteger(L, UV_UDP_RECVMMSG); + lua_setfield(L, -2, "UDP_RECVMMSG"); +#endif +#if LUV_UV_VERSION_GEQ(1, 35, 0) + lua_pushinteger(L, UV_UDP_MMSG_CHUNK); + lua_setfield(L, -2, "UDP_MMSG_CHUNK"); +#endif + lua_pushinteger(L, UV_UDP_REUSEADDR); + lua_setfield(L, -2, "UDP_REUSEADDR"); + lua_pushinteger(L, UV_UDP_PARTIAL); + lua_setfield(L, -2, "UDP_PARTIAL"); + lua_pushinteger(L, UV_UDP_IPV6ONLY); + lua_setfield(L, -2, "UDP_IPV6ONLY"); + lua_pushinteger(L, UV_TCP_IPV6ONLY); + lua_setfield(L, -2, "TCP_IPV6ONLY"); return 1; }