xtaci / smux

A Stream Multiplexing Library for golang with least memory usage(TDMA)
MIT License
1.31k stars 196 forks source link

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

Closed orestonce closed 1 year ago

xdeng commented 1 year ago

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

zachzhaozy commented 1 year ago

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

xdeng commented 1 year ago

@xtaci 看看这里

xtaci commented 1 year ago

merged

xdeng commented 1 year ago

大佬效率就是高👍

orestonce commented 1 year ago

问题解决了,我关issue