From ddd79cbbb58d23c2fac8fa8b8b5d23bf3dfa6468 Mon Sep 17 00:00:00 2001
From: Andy Green <andy.green@linaro.org>
Date: Thu, 17 Dec 2015 15:35:41 +0800
Subject: [PATCH] win cover clearing sock_send_blocking when external poll

Signed-off-by: Andy Green <andy.green@linaro.org>
---
 lib/service.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/service.c b/lib/service.c
index 2fc05af8..6b6e2896 100644
--- a/lib/service.c
+++ b/lib/service.c
@@ -476,6 +476,12 @@ lws_service_fd(struct lws_context *context, struct lws_pollfd *pollfd)
 
 		goto close_and_handled;
 	}
+
+#ifdef _WIN32
+	if (pollfd->revents & LWS_POLLOUT)
+		wsi->sock_send_blocking = FALSE;
+#endif
+
 #endif
 
 	/* okay, what we came here to do... */
-- 
GitLab