From 497f3168d13ea9a92ad18c28e8282777ec2acf73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 22 Apr 2024 10:36:10 +0200 Subject: [PATCH 1/2] win: remove no longer needed define Windows 7 is no longer supported. --- src/win/tcp.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/win/tcp.c b/src/win/tcp.c index c2efc4815f4..53225e3ddc2 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -1557,11 +1557,6 @@ int uv__tcp_connect(uv_connect_t* req, return 0; } -#ifndef WSA_FLAG_NO_HANDLE_INHERIT -/* Added in Windows 7 SP1. Specify this to avoid race conditions, */ -/* but also manually clear the inherit flag in case this failed. */ -#define WSA_FLAG_NO_HANDLE_INHERIT 0x80 -#endif int uv_socketpair(int type, int protocol, uv_os_sock_t fds[2], int flags0, int flags1) { SOCKET server = INVALID_SOCKET; From 520eb622f012c4cc17410ba702f82aebdb93c518 Mon Sep 17 00:00:00 2001 From: josedelinux Date: Fri, 26 Apr 2024 19:57:26 +0800 Subject: [PATCH 2/2] doc: fix some typos --- docs/src/guide/processes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/guide/processes.rst b/docs/src/guide/processes.rst index 99d65c40735..024af1db486 100644 --- a/docs/src/guide/processes.rst +++ b/docs/src/guide/processes.rst @@ -333,7 +333,7 @@ to hand off their I/O to other processes. Applications include load-balancing servers, worker processes and other ways to make optimum use of CPU. libuv only supports sending **TCP sockets or other pipes** over pipes for now. -To demonstrate, we will look at a echo server implementation that hands of +To demonstrate, we will look at an echo server implementation that hands off clients to worker processes in a round-robin fashion. This program is a bit involved, and while only snippets are included in the book, it is recommended to read the full code to really understand it.