kaminari icon indicating copy to clipboard operation
kaminari copied to clipboard

UDP Over Websocket

Open sabify opened this issue 2 years ago • 2 comments

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

sabify avatar Dec 22 '22 12:12 sabify

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.

zephyrchien avatar Feb 03 '23 15:02 zephyrchien

The issue has been fixed in udpflow PR (https://github.com/zephyrchien/udpflow/pull/1).

sabify avatar May 02 '23 21:05 sabify