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

[usage] when can send data on a stream #521

Open
topmanbest opened this issue Dec 5, 2024 · 1 comment
Open

[usage] when can send data on a stream #521

topmanbest opened this issue Dec 5, 2024 · 1 comment

Comments

@topmanbest
Copy link

thanks for lsquic. now i want move websocket to lsquic. my reqest data is order stream, like open/close micphone .
now i transfer it on same one stream, and donot close this stream, keep it for whole app life for next request data。
is it ok?

another question is when to send the request data to this stream, did i need this? in tcp i can epoll socket for write. in liquic, what can i do? can you show me sample code ? thans for your help

@topmanbest
Copy link
Author

【问题2】感谢lsquic工作。从websocket 迁移到 lsquic, 有一些消息是需要有序的,有一些消息是允许无序的,之前websocket 都是在同一个连接中首发消息,现在使用lsquic,怎么保障app应用改动最少,能提供部分消息的有序性,还能利用quic的弱网下优势? 应该怎么做呢?

我现在的思路是封装lsquic sdk,提供 同一个socket,同一个connect, 1个串行stream , 1-N个并发stream?

欢迎指导回复

=== by google
Thanks to lsquic for his work. When migrating from websocket to lsquic, some messages need to be ordered, and some messages are allowed to be out of order. Previously, websockets all sent messages in the same connection. Now using lsquic, how can we ensure that the app changes are minimal, provide the orderliness of some messages, and take advantage of quic's weak network? How should we do it?

My current idea is to encapsulate the lsquic sdk, provide the same socket, the same connection, 1 serial stream, 1-N concurrent streams?

Welcome to guide and reply

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