Partial send handling
authorkolis <g1m0.kolis@gmail.com>
Mon, 19 May 2014 12:40:50 +0000 (14:40 +0200)
committerAndy Green <andy.green@linaro.org>
Tue, 20 May 2014 04:38:29 +0000 (12:38 +0800)
AG removed what looked like redundant set eff_buf.token_len <- n

lib/extension.c

index 52510a9..a37c39d 100644 (file)
@@ -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 */