Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket transform large data data loss #89

Open
dingoli opened this issue Sep 19, 2017 · 2 comments
Open

websocket transform large data data loss #89

dingoli opened this issue Sep 19, 2017 · 2 comments

Comments

@dingoli
Copy link

dingoli commented Sep 19, 2017

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
Copy link
Owner

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

@dingoli
Copy link
Author

dingoli commented Sep 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants