建议增加一个 Session.GetCloseChan() 的函数,可以使用select快速得知连接已经被断开
orestonce opened this issue · comments
找了下确实找不到类似于Yamux的CloseChan函数,Yamux换到smux 需要写个循环判断IsClosed,看着不舒服。
看了下IsClosed代码,里面是有一个die的Chan的。
I opened a Pull Request (#92) for this issue, but Mr. xtaci seems to have paid little attention to this project.
merged
大佬效率就是高👍
问题解决了,我关issue