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

UDP Over Websocket #8

Open
sabify opened this issue Dec 22, 2022 · 2 comments
Open

UDP Over Websocket #8

sabify opened this issue Dec 22, 2022 · 2 comments

Comments

@sabify
Copy link

sabify commented Dec 22, 2022

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 sabify changed the title UDP Over TCP with Websocket UDP Over Websocket Dec 23, 2022
@zephyrchien
Copy link
Owner

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.

@sabify
Copy link
Author

sabify commented May 2, 2023

The issue has been fixed in udpflow PR (zephyrchien/udpflow#1).

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