vinipsmaker / tufao

An asynchronous web framework for C++ built on top of Qt
http://vinipsmaker.github.io/tufao/
GNU Lesser General Public License v2.1
589 stars 179 forks source link

websocket transform large data data loss #89

Open dingoli opened 6 years ago

dingoli commented 6 years ago

I have fixed this issue; You should change the code like this: org code: WebSocket::parsePayloadData() { .... QByteArray chunk(priv->fragment); priv->fragment.clear(); emit newMessage(chunk); .... } changed code: WebSocket::parsePayloadData() { .... priv->fragment += priv->payload; emit newMessage(priv->fragment); priv->fragment.clear(); .... } My email is:158423489@qq.com

vinipsmaker commented 6 years ago

Can you provide a scenario/description on how to reproduce the error?

dingoli commented 6 years ago

Send several hundred KB data of size.I fond that received size of data smaller than sended size of data.