From 4abc34ffd15dbf295e4d37c6af91a168a5f070ed Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 1 Jun 2023 19:06:35 -0300 Subject: [PATCH] fix accept() not looping on BSD_EWOULDBLOCK --- src/net_rl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_rl.h b/src/net_rl.h index 4c0e3890..d731b295 100644 --- a/src/net_rl.h +++ b/src/net_rl.h @@ -16,7 +16,7 @@ #define MG_SOCK_RESET(errcode) \ ((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET) -#define MG_SOCK_INTR(fd) 0 +#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK) #define socklen_t int #endif