projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff151d0
)
windows: align choked trunc checking with unix
author
Andy Green
<andy@warmcat.com>
Tue, 18 Apr 2017 07:17:22 +0000
(15:17 +0800)
committer
Andy Green
<andy@warmcat.com>
Tue, 18 Apr 2017 07:17:22 +0000
(15:17 +0800)
lib/lws-plat-win.c
patch
|
blob
|
history
diff --git
a/lib/lws-plat-win.c
b/lib/lws-plat-win.c
index
188f1a9
..
67c98f4
100644
(file)
--- a/
lib/lws-plat-win.c
+++ b/
lib/lws-plat-win.c
@@
-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;
}