[Libwebsockets] libwebsocket_write returning less than the specified length

Mike M lws14 at mordent.com
Wed Jul 2 20:51:54 CEST 2014


Hi,

How are we supposed to deal with partial writes?  Did it actually send 
some of the data and next time we get a writeable callback we are 
supposed to send the rest?

Sometimes, I notice the pipe getting choked even if it has written the 
entire buffer, and sometimes it's choked when it partially writes the 
buffer.  Is there any purpose to checking if the pipe is choked?

Thanks,
-m




More information about the Libwebsockets mailing list