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

windows: align choked trunc checking with unix

parent d8b7e892
Branches
Tags
No related merge requests found
...@@ -106,6 +106,10 @@ LWS_VISIBLE int lws_get_random(struct lws_context *context, ...@@ -106,6 +106,10 @@ LWS_VISIBLE int lws_get_random(struct lws_context *context,
LWS_VISIBLE int lws_send_pipe_choked(struct lws *wsi) LWS_VISIBLE int lws_send_pipe_choked(struct lws *wsi)
{ {
/* treat the fact we got a truncated send pending as if we're choked */
if (wsi->trunc_len)
return 1;
return (int)wsi->sock_send_blocking; return (int)wsi->sock_send_blocking;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment