Merge pull request #2239 from cesanta/rlcomments

comment
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2023-06-06 18:51:31 -03:00
commit 57424d4a26
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -629,7 +629,10 @@ struct timeval {
#define MG_SOCK_RESET(errcode) \ #define MG_SOCK_RESET(errcode) \
((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET) ((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET)
#define MG_SOCK_INTR(fd) 0 // In blocking mode, which is enabled by default, accept() waits for a
// connection request. In non blocking mode, you must call accept()
// again if the error code BSD_EWOULDBLOCK is returned.
#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK)
#define socklen_t int #define socklen_t int
#endif #endif
+3
View File
@@ -16,6 +16,9 @@
#define MG_SOCK_RESET(errcode) \ #define MG_SOCK_RESET(errcode) \
((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET) ((errcode) == BSD_ECONNABORTED || (errcode) == BSD_ECONNRESET)
// In blocking mode, which is enabled by default, accept() waits for a
// connection request. In non blocking mode, you must call accept()
// again if the error code BSD_EWOULDBLOCK is returned.
#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK) #define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK)
#define socklen_t int #define socklen_t int