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:
0b20855
)
output allow LWS_PRE+4 on top of rx_buffer_size for max send chunk
author
Andy Green
<andy@warmcat.com>
Tue, 10 May 2016 13:37:58 +0000
(21:37 +0800)
committer
Andy Green
<andy@warmcat.com>
Tue, 10 May 2016 13:37:58 +0000
(21:37 +0800)
https://github.com/warmcat/libwebsockets/issues/522
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 3dbe8bb17cf18d0fa6eda6f49a6cf89d40ae0a54..656cfafb514f8251f88c570a409f24092aa86b2b 100644
(file)
--- a/
lib/output.c
+++ b/
lib/output.c
@@
-127,7
+127,7
@@
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;
+ n = wsi->protocol->rx_buffer_size
+ LWS_PRE + 4
;
if (!n)
n = LWS_MAX_SOCKET_IO_BUF;
if (n > len)