kaminari
kaminari copied to clipboard
UDP Over Websocket
Hello,
Uot feature doesn't work over websocket tunnel and I actually couldn't figure it out why it faces buf.len() < 14
issue from lightws's connector/accecptor even if you give it a large enough buffer.
Related: #7
I did remember the UoT
library I made gives a [3;u8] tmp buffer when parsing the protocol header.. That explains why the assertion fails here.
lightws
reads bytes directly into the user-provided buffer, to save one subsequent syscall. Currently, it has been quite simple to use lightws
over other protocols. However, special care should be taken to handle with protocols over lightws
.
The issue has been fixed in udpflow
PR (https://github.com/zephyrchien/udpflow/pull/1).