xtaci / smux

A Stream Multiplexing Library for golang with least memory usage(TDMA)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

orestonce opened this issue · comments

commented

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

commented

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

commented

@xtaci 看看这里

commented

merged

commented

大佬效率就是高👍

问题解决了,我关issue