Replies: 2 comments 4 replies
-
You seem to misunderstand how Perhaps you meant to use a different codec? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
1.25.0
Platform
Ubuntu 22.04.1 LTS
kernel: 5.15.0-53-generic
Description
I created it based on the example chat - custom server.
I use BytecCodec and Framed.
short summary of the bug
I tried this code:
https://github.com/hanusek/tokio-tls-example/blob/websocket2/server/src/main.rs#L190
Sometimes, the function next() returns truncated bytes.
I expected to see this happen:
Read One message with 960.
Instead, this happened:
After the first reading, I have a message with 192 bytes. And after the following reading message with 768 bytes.
Beta Was this translation helpful? Give feedback.
All reactions