From 844c7787f9d86715c80ab56f4f28d1b808df5341 Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Mon, 29 Aug 2016 21:06:25 +0300 Subject: [PATCH] Ignore SL_EAGAIN It was observed that sl_Send can return SL_EAGAIN, despite the fact that we only call write_to_socket if it was reported as writeable. PUBLISHED_FROM=e4cbacb3f16bb7abb479222d7dcbfbe113a39161 --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 57d7e6d1..593254ab 100644 --- a/mongoose.c +++ b/mongoose.c @@ -10626,7 +10626,7 @@ void mg_set_non_blocking_mode(sock_t sock) { } static int mg_is_error(int n) { - return (n < 0 && n != SL_EALREADY); + return (n < 0 && n != SL_EALREADY && n != SL_EAGAIN); } void mg_if_connect_tcp(struct mg_connection *nc,