warmcat/libwebsockets — pull request #169 by andrew-canaday (2014-08-24 01:49:14+00:00)
Title: server.c: test **truncated_send_len** for partial

Small patch to server.c:
Testing against **truncated_send_malloc** won't work if we've already buffered and completed a partial buffer, as truncated_send_malloc isn't free'd until the socket is destroyed. Test against **truncated_send_len** (as is done elsewhere) instead.