mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: align choked trunc checking with unix
This commit is contained in:
parent
ff151d0710
commit
0b9686224d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue