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

建议增加一个 Session.GetCloseChan() 的函数,可以使用select快速得知连接已经被断开 #90

Closed
orestonce opened this issue Dec 7, 2021 · 6 comments

Comments

@orestonce
Copy link

No description provided.

@orestonce orestonce changed the title 建议增加一个 GetCloseChan() 的函数,可以使用select快速得知连接已经被断开 建议增加一个 Session.GetCloseChan() 的函数,可以使用select快速得知连接已经被断开 Dec 9, 2021
@xdeng
Copy link

xdeng commented Nov 25, 2022

找了下确实找不到类似于Yamux的CloseChan函数,Yamux换到smux 需要写个循环判断IsClosed,看着不舒服。
看了下IsClosed代码,里面是有一个die的Chan的。

@zachzhaozy
Copy link
Contributor

I opened a Pull Request (#92) for this issue, but Mr. xtaci seems to have paid little attention to this project.

@xdeng
Copy link

xdeng commented Dec 1, 2022

@xtaci 看看这里

@xtaci
Copy link
Owner

xtaci commented Dec 1, 2022

merged

@xdeng
Copy link

xdeng commented Dec 1, 2022

大佬效率就是高👍

@orestonce
Copy link
Author

问题解决了,我关issue

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

4 participants