From 21d83b44eae6a3fd284706b1f71bd9b07673c2e5 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 6 Mar 2017 12:42:08 +0800 Subject: [PATCH] test-client: only take data from LWS_CALLBACK_RECEIVE_CLIENT_HTTP --- lib/service.c | 3 +-- test-server/test-client.c | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/service.c b/lib/service.c index 31c96b1..84e489d 100644 --- a/lib/service.c +++ b/lib/service.c @@ -658,9 +658,8 @@ spin_chunks: if (wsi->chunked && !wsi->chunk_remaining) wsi->chunk_parser = ELCP_POST_CR; - if (wsi->chunked && *len) { + if (wsi->chunked && *len) goto spin_chunks; - } if (wsi->chunked) return 0; diff --git a/test-server/test-client.c b/test-server/test-client.c index fd0a724..200e9e4 100644 --- a/test-server/test-client.c +++ b/test-server/test-client.c @@ -180,13 +180,6 @@ callback_dumb_increment(struct lws *wsi, enum lws_callback_reasons reason, */ if (lws_http_client_read(wsi, &px, &lenx) < 0) return -1; - - if (lenx) { - lwsl_info("LWS_CALLBACK_RECEIVE_CLIENT_HTTP %ld\n", - (long)lenx); - - show_http_content(px, lenx); - } } break; -- 2.7.4