From 5494128faf704cffa8d59f4ca62242831514eee4 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 12 Jan 2018 09:52:14 +0800 Subject: [PATCH] test-echo: handle WRITABLE callback when nothing to send --- test-apps/test-echo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-apps/test-echo.c b/test-apps/test-echo.c index 0691b04b..ab75e19b 100644 --- a/test-apps/test-echo.c +++ b/test-apps/test-echo.c @@ -73,7 +73,8 @@ callback_echo(struct lws *wsi, enum lws_callback_reasons reason, void *user, case LWS_CALLBACK_SERVER_WRITEABLE: do_tx: - + if ((int)pss->len == -1) + break; n = LWS_WRITE_CONTINUATION; if (!pss->continuation) { if (pss->binary)