From 64ea98f11cc31c76d379a840ae0f9fff083a0050 Mon Sep 17 00:00:00 2001 From: Andy Green <andy@warmcat.com> Date: Thu, 20 Sep 2018 07:06:51 +0800 Subject: [PATCH] issue_raw: translate transaction_completed decision about close into local semantics via Chanson Shen https://libwebsockets.org/pipermail/libwebsockets/2018-September/007672.html --- lib/core/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/output.c b/lib/core/output.c index 9baa1d9d..a476df94 100644 --- a/lib/core/output.c +++ b/lib/core/output.c @@ -156,7 +156,8 @@ int lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len) "deferred transaction completed\n", __func__); wsi->http.deferred_transaction_completed = 0; - return lws_http_transaction_completed(wsi); + return lws_http_transaction_completed(wsi) ? + -1 : (int)real_len; } #endif #endif -- GitLab