projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9970f
)
output size trimming with default rxbuf fix
author
Andy Green
<andy@warmcat.com>
Sun, 15 May 2016 00:59:48 +0000
(08:59 +0800)
committer
Andy Green
<andy@warmcat.com>
Sun, 15 May 2016 00:59:48 +0000
(08:59 +0800)
5e203f78e21ee3313d763d8ee6d499fa0163f51a
accidentally
trashed the "zero rz_buffer_size means 4096" handling
for tx chunking.
Signed-off-by: Andy Green <andy@warmcat.com>
lib/output.c
patch
|
blob
|
history
diff --git
a/lib/output.c
b/lib/output.c
index
656cfaf
..
a29cf30
100644
(file)
--- a/
lib/output.c
+++ b/
lib/output.c
@@
-127,9
+127,10
@@
int lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len)
lwsl_warn("** error invalid sock but expected to send\n");
/* limit sending */
- n = wsi->protocol->rx_buffer_size
+ LWS_PRE + 4
;
+ n = wsi->protocol->rx_buffer_size;
if (!n)
n = LWS_MAX_SOCKET_IO_BUF;
+ n += LWS_PRE + 4;
if (n > len)
n = len;