libwebsockets
libwebsockets copied to clipboard
issue with uncompressed message from the server when permessage deflation is negotiated
libwebsockets client seems not to deal with Websocket compression extension properly. The Websocket protocol supports compressed and uncompressed frames. libwebsockets return should_do_nothing when received uncompressed message from the server when permessage deflation is negotiated . But it seems it forgets to decrease the length of the recv buffer's length to 0 in this situation, this would cause the do-while loop won't break.
I have the same problem and I think it's caused by this code. Please have a look, thanks very much.
client-parser-ws.c in libwebsockets-4.3.2/lib/roles/ws/
No problem here in ops-ws.c