If we issue a short write, libwebsocket handles it kinda ungracefully and we have no idea when to close the socket. Instead of letting libwebsocket copy our content into a temporary buffer, we can just give it smaller pieces.