1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Avoid checking choked pipe if no extension has more data to write.

This commit is contained in:
David Galeano 2013-01-10 10:06:38 +08:00 committed by Andy Green
parent 960da6eeb0
commit a1b39732d7

View file

@ -1560,6 +1560,11 @@ lws_issue_raw_ext_access(struct libwebsocket *wsi,
debug("written %d bytes to client\n", eff_buf.token_len);
/* no extension has more to spill */
if (!ret)
break;
/* we used up what we had */
eff_buf.token = NULL;