From e3b569160d713c2c02076faa31de05d205d1bc50 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 15 Jun 2019 07:43:18 +0800 Subject: [PATCH] http: fix keepalive issue --- src/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index 1704e91..cda1c8d 100644 --- a/src/http.c +++ b/src/http.c @@ -100,15 +100,14 @@ callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, voi #if LWS_LIBRARY_VERSION_MAJOR < 3 if (n > 0 && lws_write_http(wsi, buf, n) < 0) return 1; - goto try_to_reuse; #else if (n > 0) { pss->buffer = pss->ptr = strdup(buf); pss->len = n; lws_callback_on_writable(wsi); } - return 0; #endif + goto try_to_reuse; } if (strcmp(pss->path, "/") != 0) { -- 2.43.4