mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-01 05:52:32 +07:00
Merge pull request #2230 from cesanta/rl
RL: fix accept() not looping on BSD_EWOULDBLOCK
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user