Skip to content
Snippets Groups Projects
Commit af8db350 authored by Andrew Canaday's avatar Andrew Canaday Committed by Andy Green
Browse files

server.c: test **truncated_send_len** for partial

Testing against truncated_send_malloc won't work if we've already
buffered and completed a partial buffer, as truncated_send_malloc
isn't free'd until the socket is destroyed.
parent f012f751
No related branches found
No related tags found
No related merge requests found
...@@ -572,7 +572,7 @@ int lws_server_socket_service(struct libwebsocket_context *context, ...@@ -572,7 +572,7 @@ int lws_server_socket_service(struct libwebsocket_context *context,
/* pending truncated sends have uber priority */ /* pending truncated sends have uber priority */
if (wsi->truncated_send_malloc) { if (wsi->truncated_send_len) {
if (pollfd->revents & LWS_POLLOUT) if (pollfd->revents & LWS_POLLOUT)
if (lws_issue_raw(wsi, wsi->truncated_send_malloc + if (lws_issue_raw(wsi, wsi->truncated_send_malloc +
wsi->truncated_send_offset, wsi->truncated_send_offset,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment