Skip to content
Snippets Groups Projects
Commit 5e203f78 authored by Andy Green's avatar Andy Green
Browse files

output allow LWS_PRE+4 on top of rx_buffer_size for max send chunk

parent 0a4da2c7
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ int lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len) ...@@ -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"); lwsl_warn("** error invalid sock but expected to send\n");
/* limit sending */ /* limit sending */
n = wsi->protocol->rx_buffer_size; n = wsi->protocol->rx_buffer_size + LWS_PRE + 4;
if (!n) if (!n)
n = LWS_MAX_SOCKET_IO_BUF; n = LWS_MAX_SOCKET_IO_BUF;
if (n > len) if (n > len)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment