I'm having libwebsocket client to send binary data. I've saved my binary data into a buffer [i.e. buf] and writing to socket.
n = libwebsocket_write(wsi,
&buf[LWS_SEND_BUFFER_PRE_PADDING], l, opts | LWS_WRITE_BINARY);
My problem is socket is able to write 22392 bytes only [As I've received n= 22392]. when my l >=22392 bytes it is noticed as partial write. This value varies for various architectures.
Question:
Is there any limitation of data size in libwebsocket?
Any way to extend the buffer payload value?