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

Large Binary message isn't being sent correctly #231

Open
swilcox3 opened this issue May 14, 2019 · 0 comments
Open

Large Binary message isn't being sent correctly #231

swilcox3 opened this issue May 14, 2019 · 0 comments

Comments

@swilcox3
Copy link

swilcox3 commented May 14, 2019

I'm using the sync client of websockets-rs to connect to a server written in actix-web over localhost. I've got a 181KB chunk of binary that I'm requesting from my server, then sending back. I'm getting the chunk just fine from the server, but when I try to send it back the server never registers a message. Looking at wireshark, there's some packets that have 0 length. I'm sending the data like this:
let bin_message = OwnedMessage::Binary(data); client.send_message(&bin_message)
where data is a Vec<u8>.
A binary chunk of 1264 bytes went back and forth just fine. Do I need to handle the byte streaming myself? Why does this work on the receiving end and not the sending? I've verified my server with a python websocket client, I know it's working on that end.
.pcap of the traffic is attached.
dumpfile.zip

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

1 participant