mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-15 19:13:18 +00:00
fix accept() not looping on BSD_EWOULDBLOCK
This commit is contained in:
1 parent
250b1d511b
commit
4abc34ffd1
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
#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
|
#define MG_SOCK_INTR(fd) (fd == BSD_EWOULDBLOCK)
|
||||||
|
|
||||||
#define socklen_t int
|
#define socklen_t int
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user