From a8a484eb53b849085ff657322478240f330b5453 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 25 Jan 2018 09:00:08 +0800 Subject: [PATCH] back-to-back: clear pending flag for all variants of server write --- lib/service.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/service.c b/lib/service.c index 288f568b..31f439e7 100644 --- a/lib/service.c +++ b/lib/service.c @@ -1369,6 +1369,7 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, } } #endif + wsi->could_have_pending = 0; /* clear back-to-back write detection */ /* okay, what we came here to do... */