From f77e6e33d110a6692cfb50c90efd77ffc376c766 Mon Sep 17 00:00:00 2001 From: kolis Date: Mon, 19 May 2014 14:40:50 +0200 Subject: [PATCH] Partial send handling AG removed what looked like redundant set eff_buf.token_len <- n --- lib/extension.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/extension.c b/lib/extension.c index 52510a9..a37c39d 100644 --- a/lib/extension.c +++ b/lib/extension.c @@ -144,9 +144,12 @@ lws_issue_raw_ext_access(struct libwebsocket *wsi, } /* always either sent it all or privately buffered */ + if (wsi->u.ws.clean_buffer) + len = n; + } - lwsl_parser("written %d bytes to client\n", eff_buf.token_len); + lwsl_parser("written %d bytes to client\n", n); /* no extension has more to spill? Then we can go */ -- 2.7.4