-
Notifications
You must be signed in to change notification settings - Fork 9
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
maybe better #4
Comments
Good catch, PR welcome. |
This won't happen. Since we use |
What I'm saying is that the business side is better off encapsulating its own timeout control than just relying on quinn's timeout disconnection if the network is bad |
I understood the purpose of setting own timeout, but we can directly adjust quinn's timeout here, which I think is the better way than adding another timeout. Line 71 in 4887a92
An cmdline option will be suited for the interface, like |
tokio::select! { _ = recv_thread => (), _ = write_thread => (), _ = signal_thread => connection.close(0u32.into(), b"signal HUP"), }
如果将这些不同的处理逻辑拆分到不同的tokio::spawn中可能会更好,读写分离;放到一个spawn中,select中的某个匹配臂阻塞的话可能会导致其他匹配臂无法得到执行。recv或者send 动作可能需要添加time-out。
The text was updated successfully, but these errors were encountered: