WebSocket receive bug fix

This commit is contained in:
Mid 2025-04-15 12:07:43 +03:00
parent 1acf98ef54
commit 0408433fc3

View File

@ -372,6 +372,8 @@ static int handle(Client *cli) {
cli->ws.incoming = realloc(cli->ws.incoming, cli->ws.incomingSz + payloadSz);
memcpy(cli->ws.incoming + cli->ws.incomingSz, cli->buf + i + 4, payloadSz);
consume(cli, i + 4 + payloadSz);
if(fin) {
receive_ws(cli);