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