windows: align choked trunc checking with unix

This commit is contained in:
Andy Green 2017-04-18 15:18:14 +08:00
parent 2977272f0e
commit ba16f5172c

View file

@ -108,6 +108,10 @@ LWS_VISIBLE int lws_get_random(struct lws_context *context,
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;
}