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

EventLoopGroup为什么像ServerBootstrap不分BossGroup和WorkGroup? #30

Open
foolin opened this issue Nov 17, 2021 · 2 comments
Open

Comments

@foolin
Copy link

foolin commented Nov 17, 2021

EventLoopGroup为什么不分BossGroup和WorkGroup,多连接并发性能应该扛不住吧?这个为啥不分开啊?

@slive
Copy link

slive commented Nov 23, 2021

UDP没有TCP监听的概念,可以包装一下kcpchannel,将一个WorkGroup中的某个eventloop设置进去,在handler的channelRead0() 获取到message后,使用包装的kcpchannel的eventloop的execute方法进行解析即可

@szhnet
Copy link
Owner

szhnet commented Nov 29, 2021

实际上这里并没有建立连接的过程,就只有读写,所以用WorkGroup就够了,没有BossGroup。

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

3 participants